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
Clicking element inside iFrame does not give any response #684
Comments
@zamhaq thanks for reporting this, that's a bug. |
@zamhaq @aslushnikov any update on this issue? |
@JoelEinbinder Is this being worked upon? |
Any update? My temporary workaround is to go to the url of the iframe: const page = await browser.newPage();
await page.goto(url, {waitUntil: 'networkidle'});
// Getting iFrame
const iFrame = await getIframeByName(page.mainFrame(), 'iFrameName');
// Go to iFrame url
await page.goto(iFrame.url(), {waitUntil: 'networkidle'});
// [...] testing |
In my case, clicking element inside iFrame does the click, but in a wrong coordinates. |
ElementHandle.js: "_visibleCenter": Changing "getBoundingClientRect" for "boundingBox" fix the issue. |
The best workaround for trying to directly click an element inside an iframe that i've found is to simply select the frame containing the element and then use the frame methods to navigate/select elements inside the frame.
|
Other workarounds:
|
@MaxProvin when I try your code I get this in the console:
Does anyone know why that's happening? |
Good morning, you could know if this bug will solve ?? |
The solution for me |
I am clicking an element inside an iframe which should give me a different frame/view, that is move into the view represented by that element. If i click the element manually,the url does not change. So, I guess only the frame is changed. The element is being clicked properly since there are no errors for that. However nothing happens when it is clicked and returns error when I do
page.waitForNavigation()
.Here is the debug log listening for mouse and keyboard clicks.
Also made sure proper element is clicked referring to #618. Here is portion of code that handles clicking the element inside iframe :
Please mention if any further info is needed and help if it can be resolved.
The text was updated successfully, but these errors were encountered: