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.
-
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.
- Unzip to get IEDriverServer.exe, and add its directory to the environment variable.
- 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
- For IE10 and higher versions, you must disable Enhanced Protected Mode in the Advanced page of the IE options settings.
- 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:
- For IE11, the registry needs to be modified.
- If it is 32-bit windows, the key value is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet
Explorer\Main\FeatureControl\FEATURE_BFCACHE - If it is 64-bit windows, the key value is HKEY_LOCAL_MACHINE\SOFTWARE\ Wow6432Node \Microsoft\Internet
Explorer\Main\FeatureControl\FEATURE_BFCACHE
- If it is 32-bit windows, the key value is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet
-
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.