Пример #1
0
class AddcmPage:
    def __init__(self, driver):
        self.path = yamlpath
        self.driver = driver
        self.operate = Operate(self.path, self.driver)

    def operateap(self):
        self.operate.check_operate_type()

    def home(self):
        self.operate.back_home()
Пример #2
0
class SortcmPage:

    def __init__(self,driver):
        self.path = yamlpath
        self.driver = driver
        self.operate = Operate(self.path,self.driver)

    def sortlist(self):
        self.operate.check_operate_type()

    def home(self):
        self.operate.back_home()
Пример #3
0
class UserRegisterPage:

    def __init__(self, driver):
        self.path = yamlpath
        self.driver = driver
        self.operate = Operate(self.path, self.driver)

    def register(self):
        self.operate.check_operate_type()

    def home(self):
        self.operate.back_home()
Пример #4
0
class UserLoginPage:

    def __init__(self, driver):
        self.path = yamlpath
        self.driver = driver
        self.operate = Operate(self.path, self.driver)

    def login(self):
        self.operate.check_operate_type()

    def home(self):
        self.operate.back_home()
Пример #5
0
class SearchpdPage:
    def __init__(self, driver):
        self.path = yamlpath
        self.driver = driver
        self.operate = Operate(self.path, self.driver)

    def operateap(self):
        self.operate.check_operate_type()

    def home(self):
        self.operate.back_home()


# 测试用 忽略
# from public.GetDriver import mydriver
# driver = mydriver()
#
# aa = SearchpdPage(driver)
# aa.operateap()
Пример #6
0
class TestClickAge:
    def __init__(self, driver):
        self.path = yamlpath
        self.driver = driver
        self.operate = Operate(self.path, self.driver)
        self.base = BaseOperate(self.driver)

    def clickage(self):
        self.base.swipe_up()
        self.operate.check_operate_type()
        logger.info('购买成功')
        self.base.screenshot()
        # assert

    def home(self):
        self.operate.back_home()


# from public.GetDriver import mydriver
# x = TestClickAge(driver=mydriver())
# x.clickage()