Context:
- Playwright Version: 0.12.1
- Operating System: Windows
- Extra: Extra: node@13.6.0, npm@6.13.0
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
const { chromium, devices } = require('playwright');
(async () => {
const browser = await chromium.launch({
headless : false
});
const page = await browser.newPage();
....................
....................
const myframe = page.frames().find(frame => frame.name() === 'tool_content');
await myframe.click('//span[contains(.,"Access now")]');
Describe the bug
getting below error
"TypeError: Cannot read property 'click' of undefined"
This happens when I use "headless : false" in launch options and it's working fine for "headless : true". Adding "args: ['--disable-features=site-per-process']" into launch options will do the trick.
const browser = await chromium.launch({
headless : false,
args: ['--disable-features=site-per-process']
});