Skip to content
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

Sizzle is not defined #5

Open
yazer79 opened this issue Aug 22, 2019 · 1 comment
Open

Sizzle is not defined #5

yazer79 opened this issue Aug 22, 2019 · 1 comment

Comments

@yazer79
Copy link

yazer79 commented Aug 22, 2019

Unhandled promise rejection (rejection id: 1): Error: Evaluation failed: ReferenceError: Sizzle is not defined

Package.json:
"puppeteer": "^1.19.0", "puppeteer-select": "^1.0.3",
Platform/OS: Windows 10
Node Js version 8.9.1

const puppeteer = require('puppeteer');
const select = require ('puppeteer-select');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('somesite');
  
  await select(page).assertElementPresent('span:contains("someText")');
  const element = await select(page).getElement('span:contains("someText")');
  await element.click()

  await browser.close();
})();
@lifeboatpres
Copy link

I have the same problem in Linux. Not fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants