Skip to content

Commit

Permalink
fix(driver): fix on multiple select
Browse files Browse the repository at this point in the history
  • Loading branch information
Guikingone committed Apr 29, 2020
1 parent d1d1bec commit d1691a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Driver/PantherDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d1691a1

Please sign in to comment.