diff --git a/src/Services/InteractWithPage.php b/src/Services/InteractWithPage.php index 651432a..aa1be71 100644 --- a/src/Services/InteractWithPage.php +++ b/src/Services/InteractWithPage.php @@ -131,7 +131,7 @@ protected function submitForm($inputs, $selector) */ protected function press($text) { - $this->findElement($text, "//button[contains(text(), '{$text}')]")->click(); + $this->findElement($text, "//button[contains(., '{$text}')]")->click(); return $this; }