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