How can I start InternetExplorerDriver using Selenium WebDriver

前端 未结 16 2691
半阙折子戏
半阙折子戏 2020-12-30 17:23

I downloaded the driver and I gave the exact path in my code but when I ran the code it shows me error

my code with java is as below:

System.out.prin         


        
16条回答
  •  滥情空心
    2020-12-30 17:50

    1---Enable protected mode for all zones You need to enable protected mode for all zones from Internet Options -> Security tab. To enable protected mode for all zones

    Open Internet Explorer browser.
    Go to menu Tools -> Internet Options.
    Click on Security tab.
    Select Internet from "Select a zone to view or change security settings" and Select(check) check box "Enable Protected Mode" from In the "Security level for this zone" block .
    Apply same thing for all other 3 zones -> Local Internet, Trusted Sites and Restricted Sites
    

    This setting will resolve error related to "Protected Mode settings are not the same for all zones.

    2-- Set IE browser's zoom level 100%

    Open Internet Explorer browser.
    Go to menu View -> Zoom -> Select 100%
    

提交回复
热议问题