Spaces:
Paused
Paused
Update screenshot.py
Browse files- screenshot.py +1 -1
screenshot.py
CHANGED
|
@@ -30,7 +30,7 @@ def create_ss(graph,width=4000,height=8000):
|
|
| 30 |
print(html)
|
| 31 |
driver.implicitly_wait(int(wait_time*30))
|
| 32 |
#driver.set_window_size(int(width), int(height))
|
| 33 |
-
obj = driver.find_element(By.ID, "
|
| 34 |
screenshot = obj.screenshot(f'{uid}-tmp.png')
|
| 35 |
return(f'{uid}-tmp.png')
|
| 36 |
except Exception as e:
|
|
|
|
| 30 |
print(html)
|
| 31 |
driver.implicitly_wait(int(wait_time*30))
|
| 32 |
#driver.set_window_size(int(width), int(height))
|
| 33 |
+
obj = driver.find_element(By.ID, "chart")
|
| 34 |
screenshot = obj.screenshot(f'{uid}-tmp.png')
|
| 35 |
return(f'{uid}-tmp.png')
|
| 36 |
except Exception as e:
|