Unable to create new remote session

后端 未结 4 1077
执笔经年
执笔经年 2020-12-17 16:55

How to resolve this issue. Earlier my code was working, but IE settings were reseted by someone. Now I am getting this exception.

Started InternetExplorerDri         


        
4条回答
  •  感情败类
    2020-12-17 17:50

    First, check your default zoom level in Internet Explorer. If it's not 100% then do the following steps:

    • Open Internet Explorer.

    • Press Alt + X and then click on Internet Options.

    • Click on the Advanced tab.

    • Place a check mark on "Reset Zoom level for new Windows and tab"

    • Press Apply and ok.

    • Close and open Internet Explorer window and check if the Default Zoom is set to 100 %.

    Once you have done with above steps, add following lines in your code:

    DesiredCapabilities cap = new DesiredCapabilities();
    cap.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);
    

    Now run your program and it should work.

    Hope it will help!!

提交回复
热议问题