Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,12 +57,8 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
|
|
| 57 |
page = driver.find_element(By.TAG_NAME, "html")
|
| 58 |
print (dir(page))
|
| 59 |
print (page.text)
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
localStorage.setItem('theme', 'gab-black');
|
| 63 |
-
"""
|
| 64 |
-
|
| 65 |
-
driver.execute_script(js)
|
| 66 |
main_head = driver.find_element(By.CLASS_NAME, "main-content-header")
|
| 67 |
head_shot = main_head.screenshot(f'head-{uid}-tmp.png')
|
| 68 |
|
|
|
|
| 57 |
page = driver.find_element(By.TAG_NAME, "html")
|
| 58 |
print (dir(page))
|
| 59 |
print (page.text)
|
| 60 |
+
|
| 61 |
+
driver.execute_script("localStorage.setItem('theme', 'gab-black');")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
main_head = driver.find_element(By.CLASS_NAME, "main-content-header")
|
| 63 |
head_shot = main_head.screenshot(f'head-{uid}-tmp.png')
|
| 64 |
|