Click hangs indefinitely
From this snippet:
let any_selector = "a";
match page.find_element(any_selector).await {
Ok(btn) => {
// btn.click().await?; // Hangs
page.evaluate(format!("document.querySelector(\"{}\").click()", any_selector)).await?; // Success
}
Err(_) => panic!("Not found"),
}
This happens on any element. You can use https://example.com/ to reproduce. But it seems like a really basic issue so I am surprised to run into it.
Click hangs indefinitely
From this snippet:
This happens on any element. You can use https://example.com/ to reproduce. But it seems like a really basic issue so I am surprised to run into it.