Skip to content

Commit

Permalink
added wait for elements again
Browse files Browse the repository at this point in the history
  • Loading branch information
henninggross committed Jan 25, 2024
1 parent 49ba5dd commit 8f79296
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/timetable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ pub fn search_timetable(

sleep(Duration::from_secs(wait));

// wait on navigating to search result page
tab.wait_until_navigated()
.unwrap()
.wait_for_elements_by_xpath(r#"//*[@id="contenedor"]"#)
.unwrap();

println!("got timetable page");
let html = tab
.find_element_by_xpath(r#"//*[@id="contenedor"]"#)
Expand Down

0 comments on commit 8f79296

Please sign in to comment.