We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17881d2 commit d4d655eCopy full SHA for d4d655e
example.php
@@ -45,11 +45,8 @@
45
46
// write 'php' in the search box
47
$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
+ ->sendKeys('php') // fill the search box
+ ->submit(); // submit the whole form
53
54
// wait at most 10 seconds until at least one result is shown
55
$driver->wait(10)->until(
0 commit comments