File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3232 // create a new browser page and navigate to the url
3333 let page = browser . new_page (" https://en.wikipedia.org" ). await ? ;
3434
35+ // find and click the search toggle button to reveal the search bar
36+ page . find_element (" .search-toggle" ). await ? . click (). await ? ;
37+
3538 // find the search bar type into the search field and hit `Enter`,
3639 // this triggers a new navigation to the search result page
37- page . find_element (" input#searchInput " )
40+ page . find_element (" input[name='search'] " )
3841 . await ?
3942 . click ()
4043 . await ?
@@ -136,9 +139,9 @@ A: Check that your chromium language settings are set to English. `chromiumoxide
136139Licensed under either of these:
137140
138141- Apache License, Version 2.0, ([ LICENSE-APACHE] ( LICENSE-APACHE ) or
139- https://www.apache.org/licenses/LICENSE-2.0 )
142+ < https://www.apache.org/licenses/LICENSE-2.0 > )
140143- MIT license ([ LICENSE-MIT] ( LICENSE-MIT ) or
141- https://opensource.org/licenses/MIT )
144+ < https://opensource.org/licenses/MIT > )
142145
143146## References
144147
You can’t perform that action at this time.
0 commit comments