Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
olyble authored Mar 5, 2023
1 parent 6cb89c4 commit 3c3404f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def boom(phone):
driver = webdriver.Chrome()

print("启动浏览器,打开Web界面")
# driver.get(url)
js = "window.open('" + url + "')"
driver.execute_script(js)
driver.get(url)
# js = "window.open('" + url + "')"
# driver.execute_script(js)

handles = driver.window_handles
driver.switch_to.window(handles[-1])
Expand Down

0 comments on commit 3c3404f

Please sign in to comment.