Example usage for org.openqa.selenium.ie InternetExplorerDriver InternetExplorerDriver

List of usage examples for org.openqa.selenium.ie InternetExplorerDriver InternetExplorerDriver

Introduction

In this page you can find the example usage for org.openqa.selenium.ie InternetExplorerDriver InternetExplorerDriver.

Prototype

public InternetExplorerDriver(InternetExplorerDriverService service, InternetExplorerOptions options) 

Source Link

Usage

From source file:de.learnlib.alex.learning.entities.webdrivers.IEDriverConfig.java

License:Apache License

@Override
public WebDriver createDriver() throws Exception {
    final InternetExplorerOptions options = new InternetExplorerOptions()
            .introduceFlakinessByIgnoringSecurityDomains();

    final InternetExplorerDriverService service = new InternetExplorerDriverService.Builder().usingAnyFreePort()
            .build();/*from w w  w .  j  av  a2 s .c  o m*/

    final WebDriver driver = new InternetExplorerDriver(service, options);
    manage(driver);

    return driver;
}