From a91447cace0167dcb6d5a1f3cf37109f6b70d03a Mon Sep 17 00:00:00 2001 From: donpat1to Date: Sun, 16 Nov 2025 17:15:30 +0100 Subject: [PATCH] uncommented unnecessary code --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3c3601b..6f0e523 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(