uncommented unnecessary code
This commit is contained in:
@@ -371,7 +371,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
let url = "https://www.finanzen.net/termine/wirtschaftsdaten/";
|
||||
client.goto(url).await?;
|
||||
|
||||
let _ = client.execute(
|
||||
/* let _ = client.execute(
|
||||
r#"(() => {
|
||||
const overlay = document.querySelector('iframe[title="Contentpass First Layer"]');
|
||||
if (overlay) {
|
||||
@@ -415,7 +415,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
sleep(Duration::from_millis(500)).await;
|
||||
}
|
||||
|
||||
client.enter_parent_frame().await.ok();
|
||||
client.enter_parent_frame().await.ok();*/
|
||||
|
||||
// Set start and end dates
|
||||
let start_date = "2024-01-01";
|
||||
@@ -469,7 +469,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
|
||||
// Hide any reappearing overlay
|
||||
dismiss_overlays(&client).await?;
|
||||
/*dismiss_overlays(&client).await?;
|
||||
|
||||
// Wait for the tab to appear and click it
|
||||
if let Ok(_) = client.find(Locator::Css(
|
||||
@@ -485,7 +485,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
|
||||
// Wait a bit for the table to load
|
||||
sleep(Duration::from_secs(1)).await;
|
||||
sleep(Duration::from_secs(1)).await;*/
|
||||
|
||||
// Find all table rows
|
||||
let rows = client.find_all(Locator::Css(
|
||||
|
||||
Reference in New Issue
Block a user