(Vii) WebUI automated testing framework based on Java + Selenium is - IE browser settings

       In the last one we talked about WebDriver version of the browser is initialized, and download settings.

  When you set IE browser WebDriver tests usually meet the following errors:

1. Protected Mode IE does not close the browser.

       When an error similar to the following after the running test cases:

Exception in thread "main" org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer.
Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.

      Should be the Protected Mode IE browser is not closed.

  

Here you can turn off protected mode. It should be noted that the sites we visit is, we should view the protected mode which area of ​​the region. (In general I always shut all)

      And for IE10 and above, we need to close the "Enhanced Protected Mode"

      

    PS: Please note that option here is "take effect after restarting the computer"!

    And for IE11, we need to further modify the registry. (Run-> regedit-> Enter)

    

    If no FEATURE_BFCACHE under FeatureControl, Take FEATURE_BFCACHE the name of a new key! And creates its next DWORD, named: iexplore.exe, value is 0.

  Also, do not forget one thing, that IE zoom options. Please set the scaling options for 100%, it may not locate the page elements.

       Well, set on IE on the first stop here.

Guess you like

Origin www.cnblogs.com/generalli2019/p/11423151.html