Skip to content

Commit

Permalink
[7.x] Add Laravel\Dusk\Keyboard::pause() helper method (#1057)
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Sep 12, 2023
1 parent f970e0b commit 89ec34a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Keyboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ public function type($keys)
return $this;
}

/**
* Pause for the given amount of milliseconds.
*
* @param int $milliseconds
* @return $this
*/
public function pause($milliseconds)
{
$this->browser->pause($milliseconds);

return $this;
}

/**
* Dynamically call a method on the keyboard.
*
Expand Down

0 comments on commit 89ec34a

Please sign in to comment.