예제 #1
0
class LoginPage:
    """ 获取登录页面元素信息
    """
    def __init__(self):
        self.element = Element('login')

    def get_username_textbox(self):
        return self.element.get_element('username')

    def get_password_textbox(self):
        return self.element.get_element('password')

    def get_login_button(self):
        return self.element.get_element('login_bt')

    def get_find_password_button(self):
        return self.element.get_element('find_pw')

    def get_clean_username_button(self):
        return self.element.get_element('un_clean')

    def get_login_by_qq_button(self):
        pass

    def get_login_by_wc_button(self):
        pass
예제 #2
0
class TabBar:
    # 获取底部导航栏元素信息
    def __init__(self):
        self.element = Element('tab')

    def get_discover_button(self):
        return self.element.get_element('discover')

    def get_class_button(self):
        return self.element.get_element('pub_class')

    def get_community_button(self):
        return self.element.get_element('community')

    def get_user_button(self):
        return self.element.get_element('user_info')
예제 #3
0
class UserPage:
    """ 获取用户页面元素信息
    """
    def __init__(self):
        self.element = Element('user')

    def get_user_head(self):
        return self.element.get_element('user_head')

    def get_my_collect_button(self):
        return self.element.get_element('my_collect')

    def get_setting_button(self):
        return self.element.get_element('setting')

    def get_about_button(self):
        return self.element.get_element('about')
class GuidePage:
    """ 获取引导页元素信息
    """

    def __init__(self):
        self.element = Element('guide')

    def get_button_one(self):
        return self.element.get_element('page_one')

    def get_button_two(self):
        return self.element.get_element('page_two')

    def get_button_three(self):
        return self.element.get_element('page_three')

    def get_button_four(self):
        return self.element.get_element('page_four')

    def get_go_main_button(self):
        return self.element.get_element('go_main')
 def __init__(self):
     self.element = Element('guide')
예제 #6
0
 def __init__(self):
     self.element = Element('tab')
예제 #7
0
 def __init__(self):
     self.element = Element('user')
예제 #8
0
 def __init__(self):
     self.element = Element('signup')
예제 #9
0
 def __init__(self):
     self.element = Element('login')