java - Selenium IEDriver dosen't work on VPN -
my selenium script work on both driver chromedriver , iedriver when i'm not connected vpn.
but when try run same script while i'm connected vpn it works chromedriver only , iedriver browser open , maximized , url , after scenarios skipped below error.
org.openqa.selenium.nosuchwindowexception: unable browser (warning: server did not provide stacktrace information) command duration or timeout: 17 milliseconds
note : while debugging noticed that,
after geturl() once browser window opened, tried getcurrenturl() , got following result. ie gives initialbrowserurl instad of actual url.
iedriver logs:
[testng]started internetexplorerdriver server (32-bit) [testng] 2.53.1.0 [testng] listening on port 28196 [testng] local connections allowed [testng] actual url url : mydomain.com/xyzapplication/ [testng] getcurrenturl (driver.getcurrenturl): localhost:28196/
chromedriver logs:
[testng] starting chromedriver 2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129) on port 8160 [testng] local connections allowed. [testng] test url : mydomain.com/xyzapplication/ [testng] getcurrenturl (driver.getcurrenturl) : mydomain.com/xyzapplication/
you may need pass ie preferences in browser. stack trace open-ended i'm not sure issues is. here preferences have set on last year due issues ie ran into. may not need these without vpn
desiredcapabilities caps = desiredcapabilities.internetexplorer(); caps.setcapability(internetexplorerdriver.introduce_flakiness_by_ignoring_security_domains, true); caps.setcapability(internetexplorerdriver.initial_browser_url, " mydomain.com/xyzapplication/"); caps.setcapability(internetexplorerdriver.enable_element_cache_cleanup, true); caps.setcapability("ignoreprotectedmodesettings", true); caps.setcapability("ignorezoomsetting", true); caps.setcapability("nativeevents", false); caps.setcapability(capabilitytype.forseleniumserver.ensuring_clean_session, true); caps.setcapability(capabilitytype.accept_ssl_certs, true); caps.setcapability(capabilitytype.unexpected_alert_behaviour, unexpectedalertbehaviour.accept); driver = new internetexplorerdriver(caps); driver.manage().window().maximize();
Comments
Post a Comment