Tuesday, May 10, 2016

Selenium webdriver returning only one ie window even it has multiple windows - Solution

Hey, it's so annoying if we have a correct script which is working in good condition but not behaving as expected in desired system.

Selenium webdriver have few limitations, some times code developed on Firefox might not work as expected in Internet Explorer. I got this situation to handle with multiple windows on IE 11. But the code what I've developed on FF is failing on IE.

Here, winhandles method returning correct no. Of Windows on FF. But, IE always returning only one.

Solution:
1. Change "Compatibility View Settings" check ON in IE browser
2. Invoke "User Account Settings" in control panel and change settings go "Never notify"

Mostly above two steps will solve your problem.

"A good threat is worth a thousand tests" - Boris Beizer

No comments:

There was an error in this gadget