Commit 19a46bb8 authored by 章 登恒's avatar 章 登恒
Browse files

commit

No related merge requests found
Showing with 7 additions and 7 deletions
+7 -7
......@@ -24,13 +24,13 @@ from selenium.webdriver.support.wait import WebDriverWait
from public.mail1 import send_email1
from public.tools import *
# opt = ChromeOptions() # 创建 Chrome 参数对象
# opt.headless = False # 把 Chrome 设置成无界面模式,windows/Linux 皆可
# opt.add_argument('--start-maximized')
# opt.add_argument('--window-size=1280x1024')
# chrome = webdriver.Chrome(chrome_options=opt)
chrome =webdriver.Chrome()
chrome.maximize_window()
opt = ChromeOptions() # 创建 Chrome 参数对象
opt.headless = False # 把 Chrome 设置成无界面模式,windows/Linux 皆可
opt.add_argument('--start-maximized')
opt.add_argument('--window-size=1280x1024')
chrome = webdriver.Chrome(options=opt)
# chrome =webdriver.Chrome()
# chrome.maximize_window()
wait = WebDriverWait(chrome,20,poll_frequency=0.2)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment