Working with the IE browser

In case you want your UI to open up in IE, you would need an IE server which can be downloaded from the following location:

http://www.seleniumhq.org/download/

Working with the IE browser

Once that is done, you need to run the IE server and configure the path of the server in your system.

In case any additional information is to be required on the IE driver, the following link should be referred to:

https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver#required-configuration

Following is a sample script for test automation on the IE browser:

import org.openqa.selenium.*;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.ie.InternetExplorerDriver;
import com.eviware.soapui.model.*
import org.openqa.selenium.chrome.ChromeDriver;
import com.eviware.soapui.model.testsuite.Assertable
import com.eviware.soapui.support.XmlHolder
import java.io.File;
def regLogger = org.apache.log4j.Logger.getLogger("RegressionTestLoger");
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def properties = new java.util.Properties();
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import com.thoughtworks.selenium.Selenium;


File file = new File("C:\Program Files\SmartBear\SoapUI-5.0.0\bin\ext\IEDriverServer_x64_2.39.0\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
WebDriver driver = new InternetExplorerDriver()
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.56.29