Skip to content

Click Hangs Indefinitely While Js Click Does Not #320

@mcmah309

Description

@mcmah309

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions