My code:
(async () => {
const browser = await firefox.launch({
headless: false
});
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('about:blank');
await page.waitForTimeout(1000);
await page.goto('https://shitflare.asia/');
await page.waitForTimeout(6000);
await page.locator('iframe[title="Widget containing a Cloudflare security challenge"]').click();
console.log("nexuy idi");
// ---------------------
await context.close();
await browser.close();
})();```
Does not click on iframe through firefox, how can I click on this checkbox?
This thread is trying to answer question "How can I click on a checkbox within an iframe using Firefox in Playwright?"
The iframe couldn't be queried or loaded with Firefox
[<Frame name= url=''>]
, the url is empty and the content of the iframe couldn't be retrieved with frame.content()
Hmmm iframe... Often may contains something or a component.... Likely thing might be premissions we had stuff fail in docker vs running in windoZe specifically for browser permissions think ours was needing the clipboard... But seeing iframe this. might explain it. Then again thought about not posting this suggestion if people are going to be DM and not letting everyone in...
then there might be one other gottcha... Browser differences my exists and they might be using something... Especialy if they are developing something new? Might be pressing the features in the browsers.... https://caniuse.com/
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].