use std::error::Error; use headless_chrome::Browser; use headless_chrome::protocol::cdp::Page; fn browse_wikipedia() -> Result<(), Box<dyn Error>> { let browser = Browser::default()?; let tab = browser.new_tab()?; /// Navigate to wikipedia tab.navigate_to("https://www.wikipedia.org")?; /// Wait for network/javascript/dom to make the search-box available /// and click it. tab.wait_for_element("inpu