hotfix: Replace remote-debugging-port with remote-debugging-pipe (#563)

This commit is contained in:
Tristan Nolde 2024-01-14 12:11:17 +01:00 committed by GitHub
parent c092a7ceca
commit f7832a9656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,7 @@ def scrape( # noqa: PLR0915
},
}
options.add_argument("--headless=new")
options.add_argument("--remote-debugging-pipe")
options.add_experimental_option("prefs", preferences)
options.add_experimental_option("excludeSwitches", ["enable-logging"])
@ -97,6 +98,7 @@ def scrape( # noqa: PLR0915
).click()
pages_navigated += 1
# Trigger SI download
wait.until(ec.visibility_of_element_located((By.LINK_TEXT, "SI")))
driver.find_element(By.LINK_TEXT, "SI").click()
pages_navigated += 1
# Show shopping cart