Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,13 +52,13 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
|
|
| 52 |
driver.get(url)
|
| 53 |
html=driver.page_source
|
| 54 |
#print (driver.html)
|
| 55 |
-
page = driver.find_element(By.TAG_NAME, "html")
|
| 56 |
-
|
| 57 |
-
driver.execute_script("arguments[0].style='style.css';",page)
|
| 58 |
-
|
| 59 |
driver.implicitly_wait(30)
|
|
|
|
|
|
|
|
|
|
| 60 |
driver.set_window_size(int(width), int(height))
|
| 61 |
page = driver.find_element(By.TAG_NAME, "html")
|
|
|
|
| 62 |
print (dir(page))
|
| 63 |
#page.send_keys('theme','gab-black')
|
| 64 |
dk=page.get_attribute('theme')
|
|
|
|
| 52 |
driver.get(url)
|
| 53 |
html=driver.page_source
|
| 54 |
#print (driver.html)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
driver.implicitly_wait(30)
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
driver.set_window_size(int(width), int(height))
|
| 60 |
page = driver.find_element(By.TAG_NAME, "html")
|
| 61 |
+
driver.execute_script("arguments[0].style='style.css';",page)
|
| 62 |
print (dir(page))
|
| 63 |
#page.send_keys('theme','gab-black')
|
| 64 |
dk=page.get_attribute('theme')
|