public class PointedCoordinates extends Object implements org.openqa.selenium.interactions.internal.Coordinates
Coordinates
class.Constructor and Description |
---|
PointedCoordinates(int x,
int y)
Creates a PointedCoordinates object from given coordinates
|
PointedCoordinates(org.openqa.selenium.Point point)
Creates a PointedCoordinates object from a given Point object
|
Modifier and Type | Method and Description |
---|---|
static PointedCoordinates |
fromJson(String json)
Converts JSON string to PointedCoordinates object
|
Object |
getAuxiliary() |
static org.openqa.selenium.Point |
getElementPositionCenter(org.openqa.selenium.WebElement control)
Returns coordinates of the UiElement central point
|
org.openqa.selenium.Point |
inViewPort() |
org.openqa.selenium.Point |
onPage() |
org.openqa.selenium.Point |
onScreen() |
String |
toJson()
Converts PointedCoordinates object to JSON string
|
String |
toString()
Converts PointedCoordinates object to String
|
public PointedCoordinates(int x, int y)
x
- coordinatey
- coordinatepublic PointedCoordinates(org.openqa.selenium.Point point)
point
- Point objectpublic org.openqa.selenium.Point onScreen()
onScreen
in interface org.openqa.selenium.interactions.internal.Coordinates
Coordinates.onScreen()
public org.openqa.selenium.Point inViewPort()
inViewPort
in interface org.openqa.selenium.interactions.internal.Coordinates
Coordinates.inViewPort()
public org.openqa.selenium.Point onPage()
onPage
in interface org.openqa.selenium.interactions.internal.Coordinates
Coordinates.onPage()
public Object getAuxiliary()
getAuxiliary
in interface org.openqa.selenium.interactions.internal.Coordinates
Coordinates.getAuxiliary()
public String toJson()
public static PointedCoordinates fromJson(String json)
public static org.openqa.selenium.Point getElementPositionCenter(org.openqa.selenium.WebElement control)
control
- UiElementCopyright 2016, WorkFusion, Inc.