Commit f59ff6d0 authored by 17322369953's avatar 17322369953
Browse files

去掉绝对路径

No related merge requests found
Showing with 0 additions and 7 deletions
+0 -7
...@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment