Selenium calls IEDriverServer to open IE browser (Unable to getbrowser & No browser is open)

IEDriverServer download link:

http://selenium-release.storage.googleapis.com/index.html

Whether it is selenium2 (WebDriver) or selenium2Library, if you want to call the ie browser, the following steps are required.

  1. Download IEDriverServer. Enter the index page, first select the version number, the version number of IEDriverServer must be consistent with the version number of Selenium.

  2. Unzip to get IEDriverServer.exe, and add its directory to the environment variable.
  3. For IE7 or higher versions on windows vista and windows 7, you must uncheck (or check all of the 4 areas to enable protected mode) in the security page of IE options settings, that is, keep the four areas. Protected mode is consistent
  4. For IE10 and higher versions, you must disable Enhanced Protected Mode in the Advanced page of the IE options settings.
  5. The browser's zoom ratio must be set to 100% so that there will be no problems with element positioning, as shown in the following image:
  6. For IE11, the registry needs to be modified.
    1. If it is 32-bit windows, the key value is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet 
      Explorer\Main\FeatureControl\FEATURE_BFCACHE
    2. If it is 64-bit windows, the key value is HKEY_LOCAL_MACHINE\SOFTWARE\ Wow6432Node \Microsoft\Internet 
      Explorer\Main\FeatureControl\FEATURE_BFCACHE
  7. If the key value (FEATURE_BFCACHE) does not exist, add it. Then create an iexplore.exe inside the key, DWORD type with a value of 0.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325297909&siteId=291194637