Skip to content

Commit d4d655e

Browse files
committed
Remove workaround for selenium bug SeleniumHQ/selenium#3398
1 parent 17881d2 commit d4d655e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

example.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@
4545

4646
// write 'php' in the search box
4747
$driver->findElement(WebDriverBy::id('q'))
48-
->sendKeys('php');
49-
50-
// submit the form
51-
$driver->findElement(WebDriverBy::id('submit'))
52-
->click(); // submit() does not work in Selenium 3 because of bug https://github.com/SeleniumHQ/selenium/issues/3398
48+
->sendKeys('php') // fill the search box
49+
->submit(); // submit the whole form
5350

5451
// wait at most 10 seconds until at least one result is shown
5552
$driver->wait(10)->until(

0 commit comments

Comments
 (0)