org.specrunner.webdriver.actions.touch
Class AbstractPluginCoordinates

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.AbstractPluginHasTouchScreen
                              extended by org.specrunner.webdriver.actions.touch.AbstractPluginCoordinates
All Implemented Interfaces:
IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
Direct Known Subclasses:
AbstractPluginCoordinatesOff, PluginDoubleTap, PluginLongPress, PluginSingleTap

public abstract class AbstractPluginCoordinates
extends AbstractPluginHasTouchScreen

Touch screen helper (by coordinates).

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
AbstractPluginCoordinates()
           
 
Method Summary
 ActionType getActionType()
           
 Object getAuxiliary()
          Gets the auxiliary.
protected  org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
          Builder of coordinates.
 org.openqa.selenium.Point getIndom()
          Gets the DOM point.
 org.openqa.selenium.Point getInviewport()
          Gets the point in view.
 org.openqa.selenium.Point getOnscreen()
          Gets the point on screen.
static org.openqa.selenium.Point getPoint(String point)
          Gets the point from a string, the pattern is 'x,y'.
 void setAuxiliary(Object auxiliary)
          Sets the auxiliary.
 void setIndom(org.openqa.selenium.Point indom)
          Sets the DOM point.
 void setIndom(String indom)
          The DOM point as string.
 void setInviewport(org.openqa.selenium.Point inviewport)
          Sets the point in view.
 void setInviewport(String inviewport)
          Sets the view port.
 void setOnscreen(org.openqa.selenium.Point onscreen)
          Sets point.
 void setOnscreen(String onscreen)
          Sets the on screen point as string.
 
Methods inherited from class org.specrunner.webdriver.AbstractPluginHasTouchScreen
doEnd, 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
 

Constructor Detail

AbstractPluginCoordinates

public AbstractPluginCoordinates()
Method Detail

getOnscreen

public org.openqa.selenium.Point getOnscreen()
Gets the point on screen.

Returns:
The point.

setOnscreen

public void setOnscreen(org.openqa.selenium.Point onscreen)
Sets point.

Parameters:
onscreen - The point.

setOnscreen

public void setOnscreen(String onscreen)
Sets the on screen point as string.

Parameters:
onscreen - The screen point.

getInviewport

public org.openqa.selenium.Point getInviewport()
Gets the point in view.

Returns:
The point.

setInviewport

public void setInviewport(org.openqa.selenium.Point inviewport)
Sets the point in view.

Parameters:
inviewport - The point in view.

setInviewport

public void setInviewport(String inviewport)
Sets the view port.

Parameters:
inviewport - The view port as string.

getIndom

public org.openqa.selenium.Point getIndom()
Gets the DOM point.

Returns:
The DOM point.

setIndom

public void setIndom(org.openqa.selenium.Point indom)
Sets the DOM point.

Parameters:
indom - The DOM point.

setIndom

public void setIndom(String indom)
The DOM point as string.

Parameters:
indom - The DOM point.

getAuxiliary

public Object getAuxiliary()
Gets the auxiliary.

Returns:
The auxiliary.

setAuxiliary

public void setAuxiliary(Object auxiliary)
Sets the auxiliary.

Parameters:
auxiliary - The auxiliary.

getPoint

public static org.openqa.selenium.Point getPoint(String point)
Gets the point from a string, the pattern is 'x,y'.

Parameters:
point - The point as string.
Returns:
The point.

getCoordinates

protected org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
Builder of coordinates.

Returns:
The coordinates.

getActionType

public ActionType getActionType()


Copyright © 2013. All rights reserved.