Unable to launch IE browser in selenium webdriver

前端 未结 7 1172
再見小時候
再見小時候 2020-12-31 22:08

I have written a sample code to launch IE browser and load google page.

public class Sample {

 public static void main(String[] args) 
  {
             


        
7条回答
  •  说谎
    说谎 (楼主)
    2020-12-31 22:54

    Disabled JavaScript on IE can cause the test to not run.

    I keep reading answers to set security setting to anything as long as it's consistent, but I find it's best to set them all to Medium, as this security level won't disable JavaScript. But in any case, if one has this issue, he can choose "Custom level..." for the "Internet" option in the Security tab, and make sure that "Active Scripting" under "Scripting" is enabled.

    Of course, first make sure to complete all the steps in the IEDriver docs.

提交回复
热议问题