SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.84k stars 768 forks source link

Exceeded waiting time for new window to appear 2000ms #924

Open cw010 opened 4 years ago

cw010 commented 4 years ago

🐛 Bug Report

When clicking on a url opened in a new window in Firefox, an error is reported

To Reproduce

When clicking on a url opened in a new window in Firefox, an error is reported Failed:Exceeded waiting time for new window to appear 2000ms

Expected behavior

Same steps, no error in chrome, but error in Firefox

Project file reproducing this issue (highly encouraged)

"id": "b0eb1ebb-ea28-4dba-b86e-1e94a925fc6a", "version": "2.0", "name": "select window", "url": "https://www.google.com/search?newwindow=1&hl=en&sxsrf=ACYBGNToJG0cKH9bweItnM0tFk0A2oqOgA%3A1578397499702&source=hp&ei=O28UXufXJ4S_wAOz9IKoDQ&q=fsfda&oq=fsfda&gs_l=psy-ab.3..0j0i10l7j0i203.719.1040..1308...1.0..0.148.632.0j5......0....1..gws-wiz.....10..35i362i39j35i39j0i131.OED4U5MnSE0&ved=0ahUKEwin4Z_ytPHmAhWEH3AKHTO6ANUQ4dUDCAg&uact=5", "tests": [{ "id": "62eb33e2-f462-433d-a526-704a7c6f6c13", "name": "gg", "commands": [{ "id": "4d063ee2-fcb5-441a-b89c-849e182fa5b8", "comment": "", "command": "open", "target": "https://www.google.com/search?newwindow=1&hl=en&sxsrf=ACYBGNToJG0cKH9bweItnM0tFk0A2oqOgA%3A1578397499702&source=hp&ei=O28UXufXJ4S_wAOz9IKoDQ&q=fsfda&oq=fsfda&gs_l=psy-ab.3..0j0i10l7j0i203.719.1040..1308...1.0..0.148.632.0j5......0....1..gws-wiz.....10..35i362i39j35i39j0i131.OED4U5MnSE0&ved=0ahUKEwin4Z_ytPHmAhWEH3AKHTO6ANUQ4dUDCAg&uact=5", "targets": [], "value": "" }, { "id": "c673375b-9c97-464b-9f40-c23341359db5", "comment": "", "command": "setWindowSize", "target": "1368x847", "targets": [], "value": "" }, { "id": "41887b4d-8fc6-4264-97fb-b84497448d41", "comment": "", "command": "click", "target": "css=.bkWMgd:nth-child(2) .g:nth-child(1) .LC20lb", "targets": [ ["css=.bkWMgd:nth-child(2) .g:nth-child(1) .LC20lb", "css:finder"], ["xpath=//div[@id='rso']/div[2]/div/div/div/div/div/a/h3", "xpath:idRelative"], ["xpath=//div/a/h3", "xpath:position"], ["xpath=//h3[contains(.,'First South Florida Missionary Baptist District Association')]", "xpath:innerText"] ], "value": "", "opensWindow": true, "windowHandleName": "f", "windowTimeout": 2000 }] }], "suites": [{ "id": "c2f2d476-d192-4836-9fb2-768fc5c1449c", "name": "Default Suite", "persistSession": false, "parallel": false, "timeout": 300, "tests": [] }], "urls": ["http://the-internet.herokuapp.com/", "https://sso1.capitalonline.net/pages/login.html?next=https://console.capitalonline.net/", "https://www.baidu.com/", "https://console.capitalonline.net/", "https://sso1.capitalonline.net/pages/login.html", "https://www.capitalonline.net/zh-cn/", "http://www.capitalonline.net/zh-cn/", "https://www.google.com/search?newwindow=1&hl=en&sxsrf=ACYBGNToJG0cKH9bweItnM0tFk0A2oqOgA%3A1578397499702&source=hp&ei=O28UXufXJ4S_wAOz9IKoDQ&q=fsfda&oq=fsfda&gs_l=psy-ab.3..0j0i10l7j0i203.719.1040..1308...1.0..0.148.632.0j5......0....1..gws-wiz.....10..35i362i39j35i39j0i131.OED4U5MnSE0&ved=0ahUKEwin4Z_ytPHmAhWEH3AKHTO6ANUQ4dUDCAg&uact=5"], "plugins": [{ "id": "nknickobkcecmkiiefhjmiaihliikohm", "name": "Applitools", "version": "1.0.0" }] }%

Environment

OS: OSX-10.15.2 Selenium IDE Version: 3.16.1

Browser: Browser Version: Firefox 72.0

ianhe1 commented 4 years ago

I am seeing this issues as well.

I have a test suite that is running successfully on the Latest Chrome browser but it failed on Firefox 72.0. I am using Selenium IDE Version 3.17.0

I have 3 test cases failed with the same error

"Exceeded waiting time for new window to appear 2000ms"

This happens when I click on a link that opens another page in a new tab. I can see the new tab is open and then the test execution stops.

ianhe1 commented 4 years ago

Can we address this issue in next release?

sergeindacoco commented 2 years ago

Still reproducing "Exceeded waiting time for new window to appear 2000ms" Asking for fix

toddtarsi commented 2 years ago

We're literally within a week or two of putting a new major version out in Alpha, which is R&P fully within an Electron binary. At that point, this issue will be effectively 'solved'

cosogor commented 2 years ago

Workaraund in this tiscker can be helpfull: https://github.com/SeleniumHQ/selenium-ide/issues/1106 Try to change command timeout from 2000 to 20000 ms It was halpfull for me.