1. download IEDriverServer.exe from http://selenium-release.storage.googleapis.com/index.html
Take the last version appropriate to OS version and system type (34-bit or 64-bit)
2. add path to the exe file in system variable PATH (D:\Program\IEDriverServer;)
3. set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings, choose "Internet Options..." from the Tools menu, and click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled "Enable Protected Mode".
4. Additionally, "Enhanced Protected Mode" must be disabled for IE 10 and higher. This option is found in the Advanced tab of the Internet Options dialog of browser (the checkbox should not be present)
5. The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.
6. In the Search field ow windows type regedit.exe . For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor isHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.
7. If you use maven project add dependencies in pom file
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.45.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.45.0</version>
</dependency>
</dependencies>
Another way
If in pom file present selenium-server-standalone
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server-standalone</artifactId>
<version>2.46.0</version>
</dependency>
1. Download selenium-server-standalone.jar file from the http://www.seleniumhq.org/download/
2. Add this file to C:\Windows\System32
3. Add path in System variable PATH and restart the console or IDE where you run Selenium scripts to apply this environment change.
Немає коментарів:
Дописати коментар