Spaces:
Running
Running
Update screenshot.py
Browse files- screenshot.py +4 -1
screenshot.py
CHANGED
@@ -31,4 +31,7 @@ def create_ss(graph):
|
|
31 |
driver.set_window_size(int(width), int(height))
|
32 |
obj = driver.find_element(By.ID, "chart_box")
|
33 |
screenshot = obj.screenshot(f'{uid}-tmp.png')
|
34 |
-
|
|
|
|
|
|
|
|
31 |
driver.set_window_size(int(width), int(height))
|
32 |
obj = driver.find_element(By.ID, "chart_box")
|
33 |
screenshot = obj.screenshot(f'{uid}-tmp.png')
|
34 |
+
return(f'{uid}-tmp.png')
|
35 |
+
except Exception as e:
|
36 |
+
print(e)
|
37 |
+
return None
|