org.specrunner.webdriver.impl
Class WebDriverFactoryIe

java.lang.Object
  extended by org.specrunner.webdriver.impl.WebDriverFactoryIe
All Implemented Interfaces:
IWebDriverFactory

public class WebDriverFactoryIe
extends Object
implements IWebDriverFactory

Creates a InternetExplorer web driver instance with InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS set to true.

Author:
Thiago Santos

Field Summary
protected  String driver
          The driver path.
static String FEATURE_DRIVER
          Feature to set web driver path.
 
Constructor Summary
WebDriverFactoryIe()
          Default constructor.
 
Method Summary
 org.openqa.selenium.WebDriver create(IContext context)
          Create a WebDriver.
 String getDriver()
          Gets the driver path.
 void setDriver(String driver)
          Sets the driver path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE_DRIVER

public static final String FEATURE_DRIVER
Feature to set web driver path.


driver

protected String driver
The driver path.

Constructor Detail

WebDriverFactoryIe

public WebDriverFactoryIe()
Default constructor.

Method Detail

getDriver

public String getDriver()
Gets the driver path.

Returns:
The path.

setDriver

public void setDriver(String driver)
Sets the driver path.

Parameters:
driver - The path.

create

public org.openqa.selenium.WebDriver create(IContext context)
                                     throws PluginException
Description copied from interface: IWebDriverFactory
Create a WebDriver.

Specified by:
create in interface IWebDriverFactory
Parameters:
context - The context.
Returns:
W web driver based on context.
Throws:
PluginException - On creation errors.


Copyright © 2013. All rights reserved.