Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,6 @@ def main(url):
|
|
31 |
else:
|
32 |
driver.get("http://" + url)
|
33 |
|
34 |
-
driver.execute_cdp_cmd("Page.setLifecycleEventsEnabled", {"enabled": True})
|
35 |
-
driver.execute_cdp_cmd("Page.setPageLoadStrategy", {"strategy": "eager"})
|
36 |
WebDriverWait(driver, 30).until(
|
37 |
lambda d: d.execute_script("return document.readyState") == "complete"
|
38 |
)
|
|
|
31 |
else:
|
32 |
driver.get("http://" + url)
|
33 |
|
|
|
|
|
34 |
WebDriverWait(driver, 30).until(
|
35 |
lambda d: d.execute_script("return document.readyState") == "complete"
|
36 |
)
|