Unable to launch IE browser in selenium webdriver

前端 未结 7 1213
再見小時候
再見小時候 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:57

    To execute your code in IE need to set some security setting for your browser: 1) open IE Goto tools-- select internet options-- select security Set all zones (Internet , local internet,Trusted sites,Restricted sites) to the same protected mode(enabled or disabled is no matter) 2) set the zoom to 100% : In iE browser at top right hand side corner select settings symbol. select zoom . set zoom to 100% (what ever you want like 125,200 etc) close IE. 3) If you want to see the zoom to display on the page: On the top right hand side of the browser just right click you will get some options , enable the status bar. Then you will be able to see the zoom at the rightside bottom of the page.

提交回复
热议问题