Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
19a46bb8
Commit
19a46bb8
authored
1 year ago
by
章 登恒
Browse files
Options
Download
Email Patches
Plain Diff
commit
parent
56bf0157
main
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testcase/test_scene1/scene1_mainflow.py
+7
-7
testcase/test_scene1/scene1_mainflow.py
with
7 additions
and
7 deletions
+7
-7
testcase/test_scene1/scene1_mainflow.py
+
7
-
7
View file @
19a46bb8
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets