Пример #1
0
 def __init__(self, driver):
     self.driver = driver
     joinmodule.joinModule(self,
                           "list4")  # 进入“库存管理”模块:库存管理的‘for’属性值为“list4”
     e = WebDriverWait(
         self.driver,
         30).until(lambda driver: driver.find_element_by_link_text("效期规则"))
     await_ele.judgeEle(e, second=20, await_second=0.3)  # 点击元素
Пример #2
0
 def __init__(self, driver):
     self.driver = driver
     joinmodule.joinModule(self,
                           "list4")  # 进入“库存管理”模块:库存管理的‘for’属性值为“list4”
     e = WebDriverWait(
         self.driver,
         30).until(lambda driver: driver.find_element_by_link_text("下架规则"))
     await_ele.judgeEle(e)  # 进入“下架规则_类目”页面
     e1 = WebDriverWait(
         self.driver,
         30).until(lambda driver: driver.find_element_by_link_text("商品维度"))
     await_ele.judgeEle(e1, second=20)  # 进入“下架规则_商品”页面
Пример #3
0
 def __init__(self, driver):
     self.driver = driver
     joinmodule.joinModule(self,
                           "list4")  # 进入“库存管理”模块:库存管理的‘for’属性值为“list4”
     await_ele.getAwaitEle('link_text', "货柜库存", self.driver,
                           second=20)  # 判断元素是否可以点击
Пример #4
0
 def __init__(self, driver):
     self.driver = driver
     joinmodule.joinModule(self,
                           "list4")  # 进入“库存管理”模块:库存管理的‘for’属性值为“list4”
     e = self.driver.find_element_by_link_text("下架规则")
     await_ele.judgeEle(e, second=20)  # 进入“下架规则_类目”页面
Пример #5
0
 def __init__(self, driver):
     self.driver = driver
     joinmodule.joinModule(self,
                           "list4")  # 进入“库存管理”模块:库存管理的‘for’属性值为“list4”
     e = self.driver.find_element_by_link_text("库存查询")
     await_ele.judgeEle(e, second=20, await_second=0.3)  # 点击元素
Пример #6
0
 def __init__(self, driver):
     self.driver = driver
     joinmodule.joinModule(self, "list1")
     e = self.driver.find_element_by_link_text("退货管理")
     await_ele.judgeEle(e, second=20, await_second=0.3)  # 点击元素