New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser automation revisited - meet Puppeteer #9

Open
gergelyke opened this Issue Nov 12, 2017 · 2 comments

Comments

3 participants
@gergelyke
Owner

gergelyke commented Nov 12, 2017

No description provided.

@gergelyke gergelyke added the comments label Nov 12, 2017

@prajapati-parth

This comment has been minimized.

prajapati-parth commented Nov 15, 2017

Thanks! Its great to know about puppeteer.
Well there's SauceLabs that makes the selenium option easier. It has a lots of browser options along with OS and version options and tests video playback too. We use it for our nightly E2E tests.

@kschluter

This comment has been minimized.

kschluter commented Nov 23, 2017

Nice article however I ran into some errors on my machine unless I added a semicolon after requiring puppeteer:

const puppeteer = require('puppeteer'); // << need semicolon here before next line '('
(async () => {
  const browser = await puppeteer.launch()
  const page = await browser.newPage()
  await page.goto('https://google.com')
  await page.screenshot({path: 'google.png'})
  await browser.close()
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment