How to launch & work with IE browser using Selenium

Download IEDriverServer_Win32_3.0.0

package webapp;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

public class IeBRLaunch {

public static void main(String[] args) {
// TODO Auto-generated method stub

System.setProperty(“webdriver.ie.driver”, “C:\\Users\\pushvas\\Downloads\\selenium 3.0\\IEDriverServer_Win32_3.0.0\\IEDriverServer.exe”);

DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
caps.setCapability(“EnableNativeEvents”, false);
caps.setCapability(“ignoreZoomSetting”, true);
// Initialize InternetExplorerDriver Instance using new capability.
WebDriver driver = new InternetExplorerDriver(caps);

driver.navigate().to(“http://www.seleniumsuite.wordpress.com”);

}

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s