Omnibus commited on
Commit
6bd6719
·
verified ·
1 Parent(s): fb39712

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -28,9 +28,10 @@ def run_script(url: str, height: int, width: int):
28
  #html=driver.page_source
29
  driver.implicitly_wait(30)
30
  driver.set_window_size(int(width), int(height))
31
- #driver.find_element(By.
 
 
32
  obj = driver.find_element(By.CLASS_NAME, "main")
33
- driver.execute_script("arguments[0].theme = 'gab-black';",obj)
34
  #obj = driver.find_element(By.ID, "app-container")
35
  #obj = driver.find_element(By.ID, "conversation-feed")
36
  #obj = driver.find_element_by_id("in_html")
 
28
  #html=driver.page_source
29
  driver.implicitly_wait(30)
30
  driver.set_window_size(int(width), int(height))
31
+ page = driver.find_element(By.TAG_NAME, "html")
32
+ driver.execute_script("arguments[0].theme = 'gab-black';",page)
33
+
34
  obj = driver.find_element(By.CLASS_NAME, "main")
 
35
  #obj = driver.find_element(By.ID, "app-container")
36
  #obj = driver.find_element(By.ID, "conversation-feed")
37
  #obj = driver.find_element_by_id("in_html")