\WebDriverPoint

Represent a point.

Summary

Methods
Properties
Constants
__construct()
getX()
getY()
move()
moveBy()
equals()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$x
$y
N/A

Properties

$x

$x : 

Type

$y

$y : 

Type

Methods

__construct()

__construct(  $x,   $y) 

Parameters

$x
$y

getX()

getX() : integer

Get the x-coordinate.

Returns

integer —

The x-coordinate of the point.

getY()

getY() : integer

Get the y-coordinate.

Returns

integer —

The y-coordinate of the point.

move()

move(  $new_x,   $new_y) : \WebDriverPoint

Set the point to a new position.

Parameters

$new_x
$new_y

Returns

\WebDriverPoint —

The same instance with updated coordinates.

moveBy()

moveBy(  $x_offset,   $y_offset) : \WebDriverPoint

Move the current by offsets.

Parameters

$x_offset
$y_offset

Returns

\WebDriverPoint —

The same instance with updated coordinates.

equals()

equals(\WebDriverPoint  $point) : boolean

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

Parameters

\WebDriverPoint $point

The point to be compared with.

Returns

boolean —

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