Skip to content

Commit 89ec34a

Browse files
authored
[7.x] Add Laravel\Dusk\Keyboard::pause() helper method (#1057)
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent f970e0b commit 89ec34a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Keyboard.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@ public function type($keys)
6969
return $this;
7070
}
7171

72+
/**
73+
* Pause for the given amount of milliseconds.
74+
*
75+
* @param int $milliseconds
76+
* @return $this
77+
*/
78+
public function pause($milliseconds)
79+
{
80+
$this->browser->pause($milliseconds);
81+
82+
return $this;
83+
}
84+
7285
/**
7386
* Dynamically call a method on the keyboard.
7487
*

0 commit comments

Comments
 (0)