class WebDriverPoint (View source)

Represent a point.

Methods

__construct($x, $y)

No description

int
getX()

Get the x-coordinate.

int
getY()

Get the y-coordinate.

move(int $new_x, int $new_y)

Set the point to a new position.

moveBy(int $x_offset, int $y_offset)

Move the current by offsets.

bool
equals(WebDriverPoint $point)

Check whether the given point is the same as the instance.

Details

__construct($x, $y)

No description

Parameters

$x
$y

int getX()

Get the x-coordinate.

Return Value

int

The x-coordinate of the point.

int getY()

Get the y-coordinate.

Return Value

int

The y-coordinate of the point.

WebDriverPoint move(int $new_x, int $new_y)

Set the point to a new position.

Parameters

int $new_x
int $new_y

Return Value

WebDriverPoint

The same instance with updated coordinates.

WebDriverPoint moveBy(int $x_offset, int $y_offset)

Move the current by offsets.

Parameters

int $x_offset
int $y_offset

Return Value

WebDriverPoint

The same instance with updated coordinates.

bool equals(WebDriverPoint $point)

Check whether the given point is the same as the instance.

Parameters

WebDriverPoint $point

The point to be compared with.

Return Value

bool

Whether the x and y coordinates are the same as the instance.