Omnibus commited on
Commit
444e797
·
verified ·
1 Parent(s): 8a93da7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -52,7 +52,9 @@ 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
- driver.execute_script("arguments[0].theme='gab-black';")
 
 
56
 
57
  driver.implicitly_wait(30)
58
  driver.set_window_size(int(width), int(height))
 
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].theme='gab-black';",page)
58
 
59
  driver.implicitly_wait(30)
60
  driver.set_window_size(int(width), int(height))