Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
020b3eeb
Commit
020b3eeb
authored
Jul 29, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
20a50fd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
DuibaBaseUi.java
src/test/java/base/DuibaBaseUi.java
+1
-0
图文导航_Cms_ui.java
src/test/java/ui/cases/cms/图文导航_Cms_ui.java
+1
-0
WebDriverFactory.java
src/test/java/ui/common/WebDriverFactory.java
+6
-1
No files found.
src/test/java/base/DuibaBaseUi.java
View file @
020b3eeb
...
...
@@ -31,6 +31,7 @@ public class DuibaBaseUi extends DuibaBase{
public
void
switchChrome
(){
WebDriverRunner
.
closeWebDriver
();
driver
=
WebDriverFactory
.
createWebDriver
(
WebDriverType
.
CHRMOE
,
ProxyFactory
.
createProxy
());
// driver.manage().window().maximize();
WebDriverRunner
.
setWebDriver
(
driver
);
}
...
...
src/test/java/ui/cases/cms/图文导航_Cms_ui.java
View file @
020b3eeb
...
...
@@ -59,6 +59,7 @@ public class 图文导航_Cms_ui extends DuibaBaseUi{
clickByTextEqual
(
"添加跳转链接"
,
0
);
inputByContainsAttribut
(
"placeholder"
,
"请输入无线链接"
,
"input"
,
"http://www.baidu.com"
);
...
...
src/test/java/ui/common/WebDriverFactory.java
View file @
020b3eeb
...
...
@@ -89,7 +89,12 @@ public class WebDriverFactory {
System
.
setProperty
(
"webdriver.chrome.driver"
,
driverPath
);
//add x
new
File
(
driverPath
).
setExecutable
(
true
);
browser
=
new
ChromeDriver
(
capabilities
);
ChromeOptions
options
=
new
ChromeOptions
();
options
.
addArguments
(
"start-maximized"
);
// WebDriver driver = new ChromeDriver(options);
browser
=
new
ChromeDriver
(
options
);
break
;
case
MOBLIE:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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