Omnibus commited on
Commit
4e70073
·
verified ·
1 Parent(s): a415e00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -49,9 +49,10 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
49
  mes='<center>operation success'
50
  try:
51
  driver = webdriver.Chrome(options=options)
52
- driver.get(url)
 
53
  html=driver.page_source
54
- #print (driver.html)
55
  driver.implicitly_wait(30)
56
  driver.set_window_size(int(width), int(height))
57
  #page = driver.find_element(By.TAG_NAME, "html")
 
49
  mes='<center>operation success'
50
  try:
51
  driver = webdriver.Chrome(options=options)
52
+ driver.current_window_handle
53
+ #driver.get(url)
54
  html=driver.page_source
55
+ print(html)
56
  driver.implicitly_wait(30)
57
  driver.set_window_size(int(width), int(height))
58
  #page = driver.find_element(By.TAG_NAME, "html")