Skip to content

Commit

Permalink
add step to set window size
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Keuerleber committed Nov 19, 2024
1 parent 351e2df commit 4252c08
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Classes/ActorTraits/Controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,15 @@ public function iScroll(string $selector, int $offsetX = 0, int $offsetY = 0): v
{
$this->scrollTo($selector, $offsetX, $offsetY);
}

/**
* @param string $width
* @param string $height
* @return void
* @Given I set window size to :width x :height
*/
public function iSetWindowSize(string $width, string $height)
{
$this->resizeWindow((int)$width, (int)$height);
}
}

0 comments on commit 4252c08

Please sign in to comment.