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

iframe click not working #43

Open
kbourro opened this issue Oct 21, 2024 · 2 comments
Open

iframe click not working #43

kbourro opened this issue Oct 21, 2024 · 2 comments

Comments

@kbourro
Copy link

kbourro commented Oct 21, 2024

Example code of iframe click not working, already tested with puppeteer-core and it works. #accept-choices exist only with european ip, check with other element if you are out of europe.

    await page.goto(
      "https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe",
      { waitUntil: "domcontentloaded" }
    );
    await new Promise((resolve) => setTimeout(resolve, 3000));
    await (await page.$("#accept-choices")).click();
    let iframe = await (await page.$("#iframeResult")).contentFrame();
    console.log(iframe);
    iframe = await (
      await iframe.$(`iframe[src='https://www.w3schools.com']`)
    ).contentFrame();
    console.log(iframe);
    await (await iframe.$("#accept-choices")).click();
@BDawgBigMoney
Copy link

Im dealing with the same issue.

@nwebson
Copy link
Contributor

nwebson commented Oct 24, 2024

Thanks for reporting this bug. I just fixed it and now addBinding method (default one) fully supports iframes.
Please check the new version and report back.

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

3 participants