mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-25 12:32:34 +02:00
hotfix: Replace remote-debugging-port with remote-debugging-pipe (#563)
This commit is contained in:
parent
c092a7ceca
commit
f7832a9656
@ -40,6 +40,7 @@ def scrape( # noqa: PLR0915
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
options.add_argument("--headless=new")
|
options.add_argument("--headless=new")
|
||||||
|
options.add_argument("--remote-debugging-pipe")
|
||||||
options.add_experimental_option("prefs", preferences)
|
options.add_experimental_option("prefs", preferences)
|
||||||
options.add_experimental_option("excludeSwitches", ["enable-logging"])
|
options.add_experimental_option("excludeSwitches", ["enable-logging"])
|
||||||
|
|
||||||
@ -97,6 +98,7 @@ def scrape( # noqa: PLR0915
|
|||||||
).click()
|
).click()
|
||||||
pages_navigated += 1
|
pages_navigated += 1
|
||||||
# Trigger SI download
|
# Trigger SI download
|
||||||
|
wait.until(ec.visibility_of_element_located((By.LINK_TEXT, "SI")))
|
||||||
driver.find_element(By.LINK_TEXT, "SI").click()
|
driver.find_element(By.LINK_TEXT, "SI").click()
|
||||||
pages_navigated += 1
|
pages_navigated += 1
|
||||||
# Show shopping cart
|
# Show shopping cart
|
||||||
|
Loading…
x
Reference in New Issue
Block a user