Omnibus commited on
Commit
8aa6ef8
·
verified ·
1 Parent(s): fea9114

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ 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.get_attribute('theme'))
60
-
61
  driver.execute_script("innerHTML='gab-dark';",page)
62
  main_head = driver.find_element(By.CLASS_NAME, "main-content-header")
63
  head_shot = main_head.screenshot(f'head-{uid}-tmp.png')
 
57
  page = driver.find_element(By.TAG_NAME, "html")
58
  print (dir(page))
59
  print (page.get_attribute('theme'))
60
+ page.get_attribute('theme')='gab-black'
61
  driver.execute_script("innerHTML='gab-dark';",page)
62
  main_head = driver.find_element(By.CLASS_NAME, "main-content-header")
63
  head_shot = main_head.screenshot(f'head-{uid}-tmp.png')