Add tests for all of the account actions
This commit is contained in:
parent
be2c76c24a
commit
d9a09e92bd
9 changed files with 243 additions and 24 deletions
|
@ -8,6 +8,20 @@ use PHPUnit\Framework\Assert as PHPUnit;
|
|||
|
||||
class PterodactylBrowser extends Browser
|
||||
{
|
||||
/**
|
||||
* Move the mouse to a specific location and then perform a left click action.
|
||||
*
|
||||
* @param int $x
|
||||
* @param int $y
|
||||
* @return $this
|
||||
*/
|
||||
public function clickPosition(int $x, int $y)
|
||||
{
|
||||
$this->driver->getMouse()->mouseMove(null, $x, $y)->click();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a case insensitive search for a string in the body.
|
||||
*
|
||||
|
|
Reference in a new issue