Update app.py
Browse files20 sec wait not 10
app.py
CHANGED
@@ -21,7 +21,7 @@ def take_screenshot(url):
|
|
21 |
wd = webdriver.Chrome(options=options)
|
22 |
wd.set_window_size(1080, 720)
|
23 |
wd.get(url)
|
24 |
-
wd.implicitly_wait(
|
25 |
screenshot = wd.get_screenshot_as_png()
|
26 |
except WebDriverException:
|
27 |
return "Error: Unable to take screenshot."
|
|
|
21 |
wd = webdriver.Chrome(options=options)
|
22 |
wd.set_window_size(1080, 720)
|
23 |
wd.get(url)
|
24 |
+
wd.implicitly_wait(20)
|
25 |
screenshot = wd.get_screenshot_as_png()
|
26 |
except WebDriverException:
|
27 |
return "Error: Unable to take screenshot."
|