selenium webdriver - unexpected error launching internet explorer.IELaunchURL() returned HRESULT 80070005("Access is denied) -
not able launch ie browser through selenium. using ie11 along selenium 2.46.
please note cannot check/uncheck settings of enabled protected mode in company because of security reasons.
please find code below:
public static void main(string[] args) throws interruptedexception { webdriver driver=null; desiredcapabilities capabilities = desiredcapabilities.internetexplorer(); capabilities.setcapability(internetexplorerdriver.introduce_flakiness_by_ignoring_security_domains, true); capabilities.setcapability("ignorezoomsetting", true); system.setproperty("webdriver.ie.driver","c:\\selenium\\iedriverserver_x64_2.46.0\\iedriverserver.exe"); driver = new internetexplorerdriver(); driver.get("https://www.google.com/"); }
Comments
Post a Comment