HumHub Documentation (unofficial)

WebDriverPoint
in package

Represent a point.

Table of Contents

Properties

$x  : mixed
$y  : mixed

Methods

__construct()  : mixed
equals()  : bool
Check whether the given point is the same as the instance.
getX()  : int
Get the x-coordinate.
getY()  : int
Get the y-coordinate.
move()  : WebDriverPoint
Set the point to a new position.
moveBy()  : WebDriverPoint
Move the current by offsets.

Properties

Methods

__construct()

public __construct(mixed $x, mixed $y) : mixed
Parameters
$x : mixed
$y : mixed

equals()

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

public equals(WebDriverPoint $point) : bool
Parameters
$point : WebDriverPoint

The point to be compared with.

Return values
bool

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

getX()

Get the x-coordinate.

public getX() : int
Return values
int

The x-coordinate of the point.

getY()

Get the y-coordinate.

public getY() : int
Return values
int

The y-coordinate of the point.

move()

Set the point to a new position.

public move(int $new_x, int $new_y) : WebDriverPoint
Parameters
$new_x : int
$new_y : int
Return values
WebDriverPoint

The same instance with updated coordinates.

moveBy()

Move the current by offsets.

public moveBy(int $x_offset, int $y_offset) : WebDriverPoint
Parameters
$x_offset : int
$y_offset : int
Return values
WebDriverPoint

The same instance with updated coordinates.

Loading…
On this page

Search results