Another way to run Internet Explorer in selenium webdriver is to use IE Driver service builder.2.2 Method 2: Use IE Driver service builder. Click the OK button to save the changes.Click the Security tab, check the Enable Protected Mode( requires restarting Internet Explorer ) checkbox for all zones ( zones include Internet, Local intranet, Trusted sites, Restricted sites ).Open your Internet Explorer and click Tools -> Internet Options menu item to open the Internet Explorer Internet Options popup window.You can follow the below steps to change Protected Mode settings to the same value in IE.You should make your Internet Explorer’s Protected Mode Settings the same value to all zones before running the code above. InternetExplorerDriver ieDriver = new InternetExplorerDriver() tProperty("webdriver.ie.driver", ieDriverFilePath) Specify the executable file path to sysem property. String ieDriverFilePath = "C:\\Workspace\\\\Lib\\IEDriverServer_圆4_3.9.0\\IEDriverServer.exe" You just need to specify the IE Driver executable file path in the system property webdriver.ie.driver and then use InternetExplorerDriver to initiate and manage Internet Explorer like the following.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |