Search Header Logo

Puppeteer

Authored by Laily Q

Computers, Fun

Professional Development

Used 3+ times

Puppeteer
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Puppeteer runs non-headless by default, but can be configured to run headless

TRUE

FALSE

2.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

The advantages of using puppeteer

Taking screenshot and Generate PDF

compatible in jest framework

Automating web page interaction

3.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

How to launch puppeteer

const browser = await puppeteer.launch;

const browser: await page.puppeteer.launch

const browser = await puppeteer.launch({headless: false});

const browser = await puppeteer.launch();

4.

MULTIPLE SELECT QUESTION

5 sec • 1 pt

how to initiate puppeteer library

const puppeteer = await (puppeteer);

npm init -y

const puppeteer = require('puppeteer');

npm i puppeteer-core

5.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

puppeteer-core will download the default browser

TRUE

FALSE

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Code for taking screenshot using puppeteer

(async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://example.com'); await page.screenshot({ path: 'example.pdf' }); await browser.close(); })();

(async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://example.com'); await page.screenshot({ path: 'example.png' }); await browser.close(); })();

(async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://example.com', { path: 'example.png' }); await browser.close(); })();

7.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

When generating a PDF, Puppeteer needs to run headless

TRUE

FALSE

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?