Skip to content

Commit

Permalink
Merge pull request #2 from Way2Web/master
Browse files Browse the repository at this point in the history
Do not clear the element, because it no longer exists in the DOM after selecting an item.
  • Loading branch information
roquie authored Jun 20, 2017
2 parents 113addb + 1a1855f commit bb3b946
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/macro.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
$element->sendKeys($item);
sleep($wait);
$this->click('.select2-results__option--highlighted');
$element->clear();
}

return $this;
Expand Down

0 comments on commit bb3b946

Please sign in to comment.