Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def take_screenshot(url):
|
|
| 14 |
wd = webdriver.Chrome(options=options)
|
| 15 |
wd.set_window_size(1080, 720) # Adjust the window size here
|
| 16 |
wd.get(url)
|
| 17 |
-
wd.implicitly_wait(
|
| 18 |
screenshot = wd.get_screenshot_as_png()
|
| 19 |
except WebDriverException as e:
|
| 20 |
return Image.new('RGB', (1, 1))
|
|
|
|
| 14 |
wd = webdriver.Chrome(options=options)
|
| 15 |
wd.set_window_size(1080, 720) # Adjust the window size here
|
| 16 |
wd.get(url)
|
| 17 |
+
wd.implicitly_wait(30)
|
| 18 |
screenshot = wd.get_screenshot_as_png()
|
| 19 |
except WebDriverException as e:
|
| 20 |
return Image.new('RGB', (1, 1))
|