org.specrunner.webdriver
Class AbstractPluginWindow

java.lang.Object
  extended by org.specrunner.parameters.core.ParameterHolder
      extended by org.specrunner.plugins.core.AbstractPlugin
          extended by org.specrunner.plugins.core.AbstractPluginNamed
              extended by org.specrunner.plugins.core.AbstractPluginScoped
                  extended by org.specrunner.plugins.core.AbstractPluginValue
                      extended by org.specrunner.webdriver.AbstractPluginBrowserAware
                          extended by org.specrunner.webdriver.AbstractPluginOptions
                              extended by org.specrunner.webdriver.AbstractPluginWindow
All Implemented Interfaces:
IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
Direct Known Subclasses:
PluginMaximize, PluginPosition, PluginPosition, PluginSize, PluginSize

public abstract class AbstractPluginWindow
extends AbstractPluginOptions

Partial implementation for windows interactions.

Author:
Thiago Santos

Field Summary
 
Fields inherited from class org.specrunner.webdriver.AbstractPluginBrowserAware
FEATURE_DIR, FEATURE_INTERVAL, FEATURE_MAXWAIT, FEATURE_TIMEOUT, FEATURE_WAITFOR
 
Fields inherited from class org.specrunner.plugins.core.AbstractPlugin
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_WAIT
 
Constructor Summary
AbstractPluginWindow()
           
 
Method Summary
protected  void doEnd(IContext context, IResultSet result, org.openqa.selenium.WebDriver client, org.openqa.selenium.WebDriver.Options options)
          Perform an option action.
protected abstract  void doEnd(IContext context, IResultSet result, org.openqa.selenium.WebDriver client, org.openqa.selenium.WebDriver.Options options, org.openqa.selenium.WebDriver.Window window)
          Perform an option/window action.
 Integer getHeight()
          Gets the client height.
 Integer getWidth()
          Gets the client width.
 Integer getX()
          Gets the X position.
 Integer getY()
          Gets the Y position.
 void setHeight(Integer height)
          Sets the client height.
 void setWidth(Integer width)
          Sets the client width.
 void setX(Integer x)
          Set the X position.
 void setY(Integer y)
          Sets the Y position.
 
Methods inherited from class org.specrunner.webdriver.AbstractPluginOptions
doEnd
 
Methods inherited from class org.specrunner.webdriver.AbstractPluginBrowserAware
doEnd, getBrowserName, getDir, getDownload, getInterval, getMaxwait, getWaitCondition, getWaitfor, initialize, isWaitForClient, setDir, setDownload, setInterval, setMaxwait, setWaitfor, waitForClient
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginValue
getValue, getValue, isEval, setEval, setValue
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginScoped
getScope, saveGlobal, saveLocal, saveStrict, setScope
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginNamed
getName, setName
 
Methods inherited from class org.specrunner.plugins.core.AbstractPlugin
copy, doStart, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString
 
Methods inherited from class org.specrunner.parameters.core.ParameterHolder
getParameters, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.specrunner.parameters.IParameterHolder
getParameters, setParameters
 
Methods inherited from interface org.specrunner.plugins.IActionType
getActionType
 

Constructor Detail

AbstractPluginWindow

public AbstractPluginWindow()
Method Detail

getX

public Integer getX()
Gets the X position.

Returns:
The X position.

setX

public void setX(Integer x)
Set the X position.

Parameters:
x - The X position.

getY

public Integer getY()
Gets the Y position.

Returns:
The Y position.

setY

public void setY(Integer y)
Sets the Y position.

Parameters:
y - The Y position.

getWidth

public Integer getWidth()
Gets the client width.

Returns:
The width.

setWidth

public void setWidth(Integer width)
Sets the client width.

Parameters:
width - The width.

getHeight

public Integer getHeight()
Gets the client height.

Returns:
The height.

setHeight

public void setHeight(Integer height)
Sets the client height.

Parameters:
height - The height.

doEnd

protected void doEnd(IContext context,
                     IResultSet result,
                     org.openqa.selenium.WebDriver client,
                     org.openqa.selenium.WebDriver.Options options)
              throws PluginException
Description copied from class: AbstractPluginOptions
Perform an option action.

Specified by:
doEnd in class AbstractPluginOptions
Parameters:
context - The context.
result - The result.
client - The client.
options - The options.
Throws:
PluginException - On processing errors.

doEnd

protected abstract void doEnd(IContext context,
                              IResultSet result,
                              org.openqa.selenium.WebDriver client,
                              org.openqa.selenium.WebDriver.Options options,
                              org.openqa.selenium.WebDriver.Window window)
                       throws PluginException
Perform an option/window action.

Parameters:
context - The context.
result - The result.
client - The client.
options - The options.
window - The window.
Throws:
PluginException - On processing errors.


Copyright © 2013. All rights reserved.