Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-uitest-sow
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-uitest-sow
Commits
5a869348
Commit
5a869348
authored
Jul 26, 2021
by
mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review
parent
b3b2b2f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/pageobject/basepage.py
+4
-3
No files found.
src/pageobject/basepage.py
View file @
5a869348
...
@@ -216,14 +216,15 @@ class Page(object):
...
@@ -216,14 +216,15 @@ class Page(object):
login_page
.
excute_script_set_token
(
"xmykt-client_enterpriseId"
,
enterpriseId
)
login_page
.
excute_script_set_token
(
"xmykt-client_enterpriseId"
,
enterpriseId
)
login_page
.
excute_script_set_token
(
"xmykt-client_userId"
,
get_localStorage
[
'userId'
])
login_page
.
excute_script_set_token
(
"xmykt-client_userId"
,
get_localStorage
[
'userId'
])
login_page
.
excute_script_set_url
()
login_page
.
excute_script_set_url
()
login_page
.
sleep
(
1
)
login_page
.
sleep
(
2
)
# login_page.input_text(account_input, readConfig.test_header(user)['username'])
# login_page.input_text(account_input, readConfig.test_header(user)['username'])
# login_page.input_text(password_input, readConfig.test_header(user)['password'])
# login_page.input_text(password_input, readConfig.test_header(user)['password'])
# login_page.click(login_button)
# login_page.click(login_button)
# login_page.sleep(2)
# login_page.sleep(2)
# login_page.click_text("取 消")
if
login_page
.
ifElementExist
(
login_page
.
click_text
(
"取 消"
)):
# login_page.sleep(3)
login_page
.
click_text
(
"取 消"
)
login_page
.
sleep
(
3
)
# 鼠标键盘操作
# 鼠标键盘操作
# 拖拽元素,从sourse元素开始拖拽(x,y)像素
# 拖拽元素,从sourse元素开始拖拽(x,y)像素
...
...
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