Webdriver won't find all IE 11 windows?

I am using Selenium WebDriverJS (via node) to do automated testing. I have a test that I am trying to write to work with multiple browsers and it works fine on Chrome and Firefox, but in IE (version 11, 32-bit) I still have a persistent problem where I cannot switch to other windows , except for the main one.

Basically, as part of the test, I'll try to click a button that will open the link in a new window, then I'll try to navigate to that window and continue. Getting all the window handles and then using switchTo () to switch worked fine in other browsers, but not IE. Using the same method I get the error:

UnknownError: null value in entry: name=null ... ==== async task ==== WebDriver.switchTo().window(undefined)

So I ran:

driver.getAllWindowHandles().then(function (handles) { console.log(handles.length) });

to see if windows have appeared. And each time the result was 1, being only the main window. I see new windows that have been opened, but webdriver fails for some reason. Is there something else I need to do to make these windows visible to the driver? Any workaround?

I know IE requires some settings to work correctly with Selenium. My protected mode settings are fine and I made a FEATURE_BFCACHE key in the registry. Can't seem to find any new windows.

Using IE 11 with 32-bit driver and 64-bit Windows 7. Again, my language is javascript. Let me know if you need more information to answer.

+3


source to share





All Articles