com.opera.core.systems.testing.drivers
Class AbstractOperaDriverSupplier

java.lang.Object
  extended by com.opera.core.systems.testing.drivers.AbstractOperaDriverSupplier
All Implemented Interfaces:
com.google.common.base.Supplier<OperaDriver>, OperaDriverSupplier
Direct Known Subclasses:
DefaultOperaDriverSupplier

public abstract class AbstractOperaDriverSupplier
extends Object
implements OperaDriverSupplier

Implements shared functionality across the various OperaDriverSupplier implementations. Specifically it allows you to get and set the capabilities for a particular driver supplier.

Author:
Andreas Tolf Tolfsen

Field Summary
protected  org.openqa.selenium.Capabilities capabilities
           
protected  OperaSettings settings
           
 
Constructor Summary
AbstractOperaDriverSupplier()
           
AbstractOperaDriverSupplier(OperaSettings settings)
           
 
Method Summary
 org.openqa.selenium.Capabilities getCapabilities()
          Gets the capabilities of this supplier.
 OperaSettings getSettings()
          Gets the settings of this supplier.
 void setCapabilities(org.openqa.selenium.Capabilities newCapabilities)
          Changes the capabilities for this supplier.
 void setSettings(OperaSettings newSettings)
          Changes the settings for this supplier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Supplier
get
 

Field Detail

settings

protected OperaSettings settings

capabilities

protected org.openqa.selenium.Capabilities capabilities
Constructor Detail

AbstractOperaDriverSupplier

public AbstractOperaDriverSupplier()

AbstractOperaDriverSupplier

public AbstractOperaDriverSupplier(OperaSettings settings)
Method Detail

setSettings

public void setSettings(OperaSettings newSettings)
Description copied from interface: OperaDriverSupplier
Changes the settings for this supplier.

Specified by:
setSettings in interface OperaDriverSupplier
Parameters:
newSettings - new settings

getSettings

public OperaSettings getSettings()
Description copied from interface: OperaDriverSupplier
Gets the settings of this supplier.

Specified by:
getSettings in interface OperaDriverSupplier
Returns:
a set of settings

setCapabilities

public void setCapabilities(org.openqa.selenium.Capabilities newCapabilities)
Description copied from interface: OperaDriverSupplier
Changes the capabilities for this supplier.

Specified by:
setCapabilities in interface OperaDriverSupplier
Parameters:
newCapabilities - new capabilities

getCapabilities

public org.openqa.selenium.Capabilities getCapabilities()
Description copied from interface: OperaDriverSupplier
Gets the capabilities of this supplier.

Specified by:
getCapabilities in interface OperaDriverSupplier
Returns:
a set of capabilities


Copyright © 2012. All Rights Reserved.