Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-sc
Commits
56bf0157
Commit
56bf0157
authored
Nov 01, 2023
by
章 登恒
Browse files
commit
parent
4566de69
Changes
1
Hide whitespace changes
Inline
Side-by-side
testcase/test_scene1/scene1_mainflow.py
View file @
56bf0157
...
...
@@ -24,11 +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
)
# 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
()
wait
=
WebDriverWait
(
chrome
,
20
,
poll_frequency
=
0.2
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment