Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
|
|
53 |
html=driver.page_source
|
54 |
-
|
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")
|