Skip to content

Commit

Permalink
fix: add a delay before finding for input elements in login page
Browse files Browse the repository at this point in the history
  • Loading branch information
Subhra264 committed Aug 22, 2024
1 parent a93cab2 commit d0c259e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ pub async fn generate_report(
.await?;
page.disable_log().await?;
log::info!("headless: new page created");
tokio::time::sleep(Duration::from_secs(5)).await;

page.find_element("input[type='email']")
.await?
Expand Down

0 comments on commit d0c259e

Please sign in to comment.