-
Notifications
You must be signed in to change notification settings - Fork 9k
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
click() isn't working: scrolling issue? #4110
Comments
@hlr1983 this looks like a problem with clicking something inside an iframe. I tried clicking a button inside an iframe that was scrolled away, but it worked fine. Any chance you can build a small repro website that reproduces it so that we can see what's going on and fix it? |
I saved the files locally and I think it is reproducible with local files, as shown in this video. On the first run it clicks and the browser tries to open the link, on the second I manually scroll down and the browser doesn't. How could I send the files to you, @aslushnikov? Thank you very much. PS:
|
@hlr1983 feel free to send them over to aslushnikov[at]gmail.com or lushnikov[at]google.com |
Ok. Sent to lushnikov[at]google.com |
@hlr1983 thank you very much! I was able to repro and add a failing test; we'll fix it shortly. |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it! |
Steps to reproduce
Tell us about your environment:
uname -a
Linux henrique-Latitude-5480 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
What steps will reproduce the problem?
I have the following piece of code, in a simplified way:
What is the expected result?
Click on element 'a#anchor18335653' and resolves the waitForNavigation() promises.
What happens instead?
sometimes waitForNavigation timeouts
So I ran Chrome with graphical interface, and verified that _ifrArvoreFrameSEI.click('a#anchor18335653') doesn't seem to be scrolling. When I have the following screen, it works:
But on this one, it doesn't work:
I think the problem might be in the scroll bar marked with Red, as puppeteer doesn't seem to be scrolling it. Sorry for the black stripes, I had to add them because the screen potentially shows private data.
'a#anchor18335653' is shown below.
![image](https://user-images.githubusercontent.com/19354250/53740691-8a105c80-3e73-11e9-90bf-6b36ae60f85c.png)
When I manually scrolled the bar, in the 5 seconds given by Atomics.wait, it works:
It woks if Chrome is launched with
defaultViewport: {width: 2000, height:2000}
I've also noticed that the code bellow works fine:
Thanks.
The text was updated successfully, but these errors were encountered: