Class PointOption<T extends PointOption<T>>
- java.lang.Object
-
- io.appium.java_client.touch.ActionOptions<T>
-
- io.appium.java_client.touch.offset.PointOption<T>
-
- Direct Known Subclasses:
ElementOption
public class PointOption<T extends PointOption<T>> extends ActionOptions<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.Pointcoordinates
-
Constructor Summary
Constructors Constructor Description PointOption()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>build()Creates a map based on the provided options.static PointOptionpoint(int xOffset, int yOffset)It creates a built instance ofPointOptionwhich takes x and y coordinates.static PointOptionpoint(org.openqa.selenium.Point offset)It creates a built instance ofPointOptionwhich takes x and y coordinates.protected voidverify()This method is automatically called before building options map to verify the consistency of the instance.TwithCoordinates(int xOffset, int yOffset)It defines x and y coordinates.TwithCoordinates(org.openqa.selenium.Point offset)It defines x and y coordinates.
-
-
-
Method Detail
-
point
public static PointOption point(org.openqa.selenium.Point offset)
It creates a built instance ofPointOptionwhich takes x and y coordinates. This is offset from the upper left corner of the screen.- Parameters:
offset- is an offset value.- Returns:
- a built option
-
point
public static PointOption point(int xOffset, int yOffset)
It creates a built instance ofPointOptionwhich takes x and y coordinates. This is offset from the upper left corner of the screen.- Parameters:
xOffset- is x value.yOffset- is y value.- Returns:
- a built option
-
withCoordinates
public T withCoordinates(org.openqa.selenium.Point offset)
It defines x and y coordinates. This is offset from the upper left corner of the screen.- Parameters:
offset- is an offset value.- Returns:
- self-reference
-
withCoordinates
public T withCoordinates(int xOffset, int yOffset)
It defines x and y coordinates. This is offset from the upper left corner of the screen.- Parameters:
xOffset- is x value.yOffset- is y value.- Returns:
- self-reference
-
verify
protected void verify()
Description copied from class:ActionOptionsThis method is automatically called before building options map to verify the consistency of the instance.- Specified by:
verifyin classActionOptions<T extends PointOption<T>>
-
build
public java.util.Map<java.lang.String,java.lang.Object> build()
Description copied from class:ActionOptionsCreates a map based on the provided options.- Overrides:
buildin classActionOptions<T extends PointOption<T>>- Returns:
- options mapping.
-
-