diff --git a/src/Driver/PantherDriver.php b/src/Driver/PantherDriver.php index 8d339d2..006e7dc 100644 --- a/src/Driver/PantherDriver.php +++ b/src/Driver/PantherDriver.php @@ -380,7 +380,11 @@ public function selectOption($xpath, $value, $multiple = false) $element = $this->client->findElement(WebDriverBy::xpath($xpath)); $selectElement = new WebDriverSelect($element); - $selectElement->deselectAll(); + + if ($selectElement->isMultiple()) { + $selectElement->deselectAll(); + } + $selectElement->selectByValue($value); }