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
f59ff6d0
Commit
f59ff6d0
authored
Dec 08, 2023
by
17322369953
Browse files
去掉绝对路径
parent
a3601612
Changes
1
Hide whitespace changes
Inline
Side-by-side
actions/actions_buy/page_buy.py
View file @
f59ff6d0
...
...
@@ -63,9 +63,6 @@ class PageBuy(PageLogin):
_supplier_input_locator
=
(
By
.
XPATH
,
'//input[@placeholder = "模糊检索:供应商名称,供应商编码"]'
)
# 供应商搜索元素
_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
_supplier_dialog_locator
=
(
By
.
XPATH
,
'//div[starts-with(@id,"el-id-") and contains(@id,"-20") and @class="el-dialog__body"]'
)
...
...
@@ -389,10 +386,6 @@ class PageBuy(PageLogin):
def
get_businessman_dialog
(
self
):
return
self
.
get_element_wait_presence
(
self
.
_businessman_dialog_locator
)
'''商品信息hold'''
'''获取商品全选复选框'''
def
get_merchandise_all_select
(
self
):
return
self
.
get_element_wait_presence
(
self
.
_merchandise_all_select_locator
)
'''商品录入按钮'''
def
get_merchandise
(
self
):
...
...
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