From 15466c7b4a2e81089ff81b3cd349127462f91920 Mon Sep 17 00:00:00 2001 From: Stefan Neuser Date: Thu, 11 Feb 2016 18:52:12 +0100 Subject: [PATCH] Update Selenium.php Before it turns into a error if you have more than one selectbox with same option values. Please take a lock Jeffrey. --- src/Extensions/Selenium.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extensions/Selenium.php b/src/Extensions/Selenium.php index 5fd668d..ec471ba 100644 --- a/src/Extensions/Selenium.php +++ b/src/Extensions/Selenium.php @@ -242,7 +242,7 @@ public function tick($element) */ public function select($element, $option) { - $this->findByValue($option, 'option')->click(); + $this->findByValue($option, "select[name=$element] > option")->click(); return $this; }