org.specrunner.webdriver.impl
Class WebDriverFactoryChrome

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

public class WebDriverFactoryChrome
extends Object
implements IWebDriverFactory

A helper class for Chrome WebDriver. Set the paths required.

Author:
Thiago Santos

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

Field Detail

FEATURE_CHROME

public static final String FEATURE_CHROME
Feature to set Chrome path.


chrome

protected String chrome
The path Chrome path.


FEATURE_DRIVER

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


driver

protected String driver
The driver path.


FEATURE_SWITCHES

public static final String FEATURE_SWITCHES
Feature to set Chrome switches options.


switches

protected String switches
The switches options.

Constructor Detail

WebDriverFactoryChrome

public WebDriverFactoryChrome()
Default constructor.

Method Detail

getChrome

public String getChrome()
Gets the Chrome path.

Returns:
The path.

setChrome

public void setChrome(String chrome)
Sets the Chrome path.

Parameters:
chrome - The path.

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.

getSwitches

public String getSwitches()
Gets the switches.

Returns:
The switches.

setSwitches

public void setSwitches(String switches)
Sets the switches.

Parameters:
switches - The switches.

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.