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
f59ff6d0
Commit
f59ff6d0
authored
1 year ago
by
17322369953
Browse files
Options
Download
Email Patches
Plain Diff
去掉绝对路径
parent
a3601612
main
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
actions/actions_buy/page_buy.py
+0
-7
actions/actions_buy/page_buy.py
with
0 additions
and
7 deletions
+0
-7
actions/actions_buy/page_buy.py
+
0
-
7
View file @
f59ff6d0
...
@@ -63,9 +63,6 @@ class PageBuy(PageLogin):
...
@@ -63,9 +63,6 @@ class PageBuy(PageLogin):
_supplier_input_locator
=
(
By
.
XPATH
,
'//input[@placeholder = "模糊检索:供应商名称,供应商编码"]'
)
_supplier_input_locator
=
(
By
.
XPATH
,
'//input[@placeholder = "模糊检索:供应商名称,供应商编码"]'
)
# 供应商搜索元素
# 供应商搜索元素
_supplier_search_locator
=
(
By
.
XPATH
,
'//input[@placeholder = "模糊检索:供应商名称,供应商编码"]/../span/span/i'
)
_supplier_search_locator
=
(
By
.
XPATH
,
'//input[@placeholder = "模糊检索:供应商名称,供应商编码"]/../span/span/i'
)
# 供应商表元素-----这个只能找绝对路径了,开发太狠了
_supplier_table_locator
=
(
By
.
XPATH
,
'/html/body/div[10]/div/div/div/div[1]/div[2]/div[1]/div/div/div/div[1]/div[3]/div/div[1]/div/table'
)
# 供应商dialog
# 供应商dialog
_supplier_dialog_locator
=
(
_supplier_dialog_locator
=
(
By
.
XPATH
,
'//div[starts-with(@id,"el-id-") and contains(@id,"-20") and @class="el-dialog__body"]'
)
By
.
XPATH
,
'//div[starts-with(@id,"el-id-") and contains(@id,"-20") and @class="el-dialog__body"]'
)
...
@@ -389,10 +386,6 @@ class PageBuy(PageLogin):
...
@@ -389,10 +386,6 @@ class PageBuy(PageLogin):
def
get_businessman_dialog
(
self
):
def
get_businessman_dialog
(
self
):
return
self
.
get_element_wait_presence
(
self
.
_businessman_dialog_locator
)
return
self
.
get_element_wait_presence
(
self
.
_businessman_dialog_locator
)
'''商品信息hold'''
'''商品信息hold'''
'''获取商品全选复选框'''
def
get_merchandise_all_select
(
self
):
return
self
.
get_element_wait_presence
(
self
.
_merchandise_all_select_locator
)
'''商品录入按钮'''
'''商品录入按钮'''
def
get_merchandise
(
self
):
def
get_merchandise
(
self
):
...
...
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