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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -25,11 +25,13 @@ def run_script(url: str, height: int, width: int):
25
  try:
26
  driver = webdriver.Chrome(options=options)
27
  driver.get(url)
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")
 
25
  try:
26
  driver = webdriver.Chrome(options=options)
27
  driver.get(url)
28
+ html=driver.page_source
29
+ print (driver.html)
30
  driver.implicitly_wait(30)
31
  driver.set_window_size(int(width), int(height))
32
  page = driver.find_element(By.TAG_NAME, "html")
33
+ driver.execute_script("html.theme = 'gab-black';",html)
34
+ #driver.execute_script("arguments[0].theme = 'gab-black';",page)
35
 
36
  obj = driver.find_element(By.CLASS_NAME, "main")
37
  #obj = driver.find_element(By.ID, "app-container")