Certificate Error while running Selenium test cases in IE -
i trying run selenium test cases in ie,and facing issues
first, element.click()
not working sometimes. according to observation when try else while script running in machine, it's not working, didn't face kind of issue in firefox , chrome.
second, there links in application when click on them window come up. script, when use click()
function it's not able click on link. issue not there in firefox or chrome.
third, in application getting certificate exception. avoid used:
desiredcapabilities caps = desiredcapabilities.internetexplorer(); caps.setcapability(internetexplorerdriver.introduce_flakiness_by_ignoring_security_domains, true); system.setproperty("webdriver.ie.driver", "browserdrivers/iedriverserver.exe"); web = new internetexplorerdriver(caps); web.manage().timeouts().implicitlywait(120, timeunit.seconds); web.manage().timeouts().pageloadtimeout(120, timeunit.seconds); web.get(url); web.get("javascript:document.getelementbyid('overridelink').click();");
i have used above code, worked , able log in, in test cases there cases where, when click on link navigate window. when other window coming again certificate exception. not able run rest of cases , resulting cases have failed.
i not able figure out problem why these issues occurring.
ie version using ie 11.0
selenium version using 2.39.0
never use caps.setcapability(internetexplorerdriver.introduce_flakiness_by_ignoring_security_domains,true);
capability. if not able open ie without capability, might because of protected mode settings should set same value zones (either on or off) , browser zoom level should 100%. read more here : https://code.google.com/p/selenium/wiki/internetexplorerdriver#required_configuration
Comments
Post a Comment