<reponame>wjhgg/automated_unittest<filename>po/test_case/cloubox_07/cloubox_07_page/baidu_page.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-

from po.config import conf
from po.models.base_page import BasePage
from selenium.webdriver.common.by import By

from po.models.doexcel import ReadExcel
from po.models.log import Logger
from po.models.myunit import MyunitTest

log = Logger(__name__)

class Baidu(BasePage, MyunitTest):
    """
    每个page页需要继承或引用MyunitTest，并重构__init__
    """
    def __init__(self, *args, **kwargs):
        MyunitTest.__init__(self, *args, **kwargs)

    def baidupage(self):
        self.click(['',''])
        # ......测试类用到的公共操作 or 页面元素

if __name__ == '__main__':
    pass

#!/usr/bin/python3
# -*- coding: utf-8 -*-

from po.config import conf
from po.models.base_page import BasePage
from selenium.webdriver.common.by import By

from po.models.doexcel import ReadExcel
from po.models.log import Logger
from po.models.myunit import MyunitTest

log = Logger(__name__)

class Baidu(BasePage, MyunitTest):
    """
    每个page页需要继承或引用MyunitTest，并重构__init__
    """
    def __init__(self, *args, **kwargs):
        MyunitTest.__init__(self, *args, **kwargs)

    def baidupage(self):
        self.click(['',''])
        # ......测试类用到的公共操作 or 页面元素

if __name__ == '__main__':
    pass
#!/usr/bin/python3 # -*- coding: utf-8 -*- 每个page页需要继承或引用MyunitTest，并重构__init__ # ......测试类用到的公共操作 or 页面元素