You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a custom Page instance, for example using browser.newPage(), the toSelect matcher fails with the following Error: JSHandles can be evaluated only in the context they were created!
To Reproduce
NOTE: I haven’t run this inside a reduced testcase, but my testsuite runs correctly when not using browser.newPage().
// fails:constp=awaitbrowser.newPage()// works:// const p = pageawaitexpect(p).toSelect('select[name="fontFamily"]',font)
Expected behavior
This should work no matter which page instance it is run on.
Link to repl or repo (highly encouraged)
Please provide a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
Paste the results here:
node@10.15.3
jest-puppeteer@4.3.0
expect-puppeteer@4.3.0
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
When using a custom
Page
instance, for example usingbrowser.newPage()
, thetoSelect
matcher fails with the following Error:JSHandles can be evaluated only in the context they were created!
To Reproduce
NOTE: I haven’t run this inside a reduced testcase, but my testsuite runs correctly when not using
browser.newPage()
.Expected behavior
This should work no matter which
page
instance it is run on.Link to repl or repo (highly encouraged)
Please provide a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run
npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: