Skip to content

Commit 259006c

Browse files
authored
bug: pass options to waitForActionable to override timeout
Signed-off-by: Gordon Franke <info@nevalon.de>
1 parent 37a6f23 commit 259006c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Locator/Locator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getOptions(): array
9999
public function click(array|ClickOptions $options = []): void
100100
{
101101
$options = ClickOptions::from($options);
102-
$this->waitForActionable();
102+
$this->waitForActionable($options);
103103
$this->sendCommand('locator.click', ['options' => $options->toArray()]);
104104
}
105105

@@ -415,7 +415,7 @@ public function setInputFiles(string|array $files, array|SetInputFilesOptions $o
415415
public function fill(string $value, array|FillOptions $options = []): void
416416
{
417417
$options = FillOptions::from($options);
418-
$this->waitForActionable();
418+
$this->waitForActionable($options);
419419
$this->sendCommand('locator.fill', ['value' => $value, 'options' => $options->toArray()]);
420420
}
421421

@@ -480,7 +480,7 @@ public function hover(array|HoverOptions $options = []): void
480480
public function dragTo(LocatorInterface $target, array|DragToOptions $options = []): void
481481
{
482482
$options = DragToOptions::from($options);
483-
$this->waitForActionable();
483+
$this->waitForActionable($options);
484484

485485
$targetSelector = $target->getSelector();
486486

0 commit comments

Comments
 (0)