mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.2k stars 1.52k forks source link

Intermittent `TimedPromise timed out after 300000 ms` on `click()` #2019

Closed AlexandraMoga closed 2 years ago

AlexandraMoga commented 2 years ago

System

Testcase

On https://addons.mozilla.org/en-US/firefox/, click on the "Themes" link in the header menu. The element is located in this html bit:

<ul class="SectionLinks Header-SectionLinks"><li><a class="SectionLinks-link SectionLinks-link-extension" href="/en-US/firefox/extensions/">Extensions</a></li><li><a class="SectionLinks-link SectionLinks-link-theme" href="/en-US/firefox/themes/">Themes</a>

Stacktrace

stacktrace.zip

More details

I'm receiving this error intermittently and always for a click() event; It can happen randomly with elements I have to click on. I'm also generating a test report after each run and I can see in the captured screenshot at failure that the click occurred actually, given that the expected page was opened.

whimboo commented 2 years ago

Could you please attach a trace-level log from geckodriver?

whimboo commented 2 years ago

Closing issue due to missing feedback from reporter.

AlexandraMoga commented 2 years ago

@whimboo apologies for the late reply. This error is intermittent so I haven't been able to pull out driver logs. I've managed to reproduce it recently and I have log output for it. Hope this helps.

driver.log

whimboo commented 2 years ago

@AlexandraMoga thanks for the logs. So the test is clicking a link that redirects to a download. This is known to be broken and needs to be handled differently. I'm going to duplicate this issue to issue #1065.