Switched to IE11 window times out [switchTo().window(handle)]
See original GitHub issueMeta -
OS: Windows 7 Selenium Version: 2.53 Browser: IE Browser Version: 11
Expected Behavior -
I am using C# code to change IE11 browser’s tab switch. so far i can open a new tab successfully, but when i switch the tab using the following command, my code gets stuck :
browser.driver.switchTo().window(windowHandles.oldTab)
Is it a Selenium Bug, or is this the wrong syntax to Switch Window Handle?
when i debug the issue, i get the following exception after waiting a long time :
An exception of type 'OpenQA.Selenium.WebDriverException' occurred in WebDriver.dll but was not handled in user code
Additional information: The HTTP request to the remote WebDriver server for URL http://127.0.0.1:4444/wd/hub/session/36fa4074-3b34-4dea-9da8-c8278b135c4f/window timed out after 240 seconds.
The issue is described in detail here, Please take a look at last 2 comment in this thread : https://github.com/angular/protractor/issues/55
Actual Behavior -
The driver object should Switch WindowsHandle. instead it stops at code line browser.driver.switchTo().window(windowHandles.newTab);
Steps to reproduce -
The code example is also written in the link.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (3 by maintainers)
Hey guys im so sorry for not replying and the main reason is that i left that job and I couldn’t recall the solution, but I can vaguely recall that the issue was in logic, perhaps I was trying to access the new page before it got created or something like that, though now that i see the code here it doesnt look like that but the issue was only in logic and I corrected the order of calls. I hope it helps?
Hey @sophiaatif, I would be interested in seeing your workaround as well.