Example #1
0
 def paster_bar(self):
     """
         Summary:
             我的贴纸栏
     """
     name_ = '我的贴纸'
     return table_cell.UIATableCell(self.parent, name=name_)
Example #2
0
 def setting_bar(self):
     """
         Summary:
             设置栏
     """
     name_ = '设置'
     return table_cell.UIATableCell(self.parent, name=name_)
Example #3
0
 def logout_bar(self):
     """
         Summary:
             退出栏
     """
     name_ = "退出登录"
     return table_cell.UIATableCell(self.parent, name=name_)
Example #4
0
 def my_friends_bar(self):
     """
         Summary:
             我的好友栏
     """
     name_ = '我的好友'
     return table_cell.UIATableCell(self.parent, name=name_)
 def add_paseter_button(self):
     """
         Summary:
             添加贴纸按按钮
     """
     xpath_ = '//UIATableView[1]/UIATableCell[4]'
     cell = table_cell.UIATableCell(self.base_parent, xpath=xpath_)
     return button.UIAButton(cell, type='UIAButton')  # cell下第一个button就是
 def privacy_setting_bar(self):
     """
         Summary:
             隐私设置栏
     :return:
     """
     name_ = '隐私设置'
     return table_cell.UIATableCell(self.parent, name=name_)
 def avatar_bar(self):
     """
         Summary:
             头像栏
     :return:
     """
     name_ = '头像'
     return table_cell.UIATableCell(self.parent, name=name_)
 def region_bar(self):
     """
         Summary:
             地区栏
     :return:
     """
     name_ = '地区'
     return table_cell.UIATableCell(self.parent, name=name_)
    def add_template_button(self):
        """
            Summary:
                添加模板按钮
        """
        xpath_ = '//UIATableView[1]/UIATableCell[6]'
        cell = table_cell.UIATableCell(self.base_parent, xpath=xpath_)

        return button.UIAButton(cell, type='UIAButton')
 def in_id_edit_box(self):
     """
         Summary:
             in号输入框
     :return:
     """
     name_ = 'in号'
     cell_ = table_cell.UIATableCell(self.parent, name=name_)
     return text_field.UIATextField(cell_, type='UIATextField')
 def nickname_edit_box(self):
     """
         Summary:
             昵称修改文本输入框
     :return:
     """
     name_ = '昵称'
     cell_ = table_cell.UIATableCell(self.parent, name=name_)
     return text_field.UIATextField(cell_, type='UIATextField')
    def used_recently_paster_list(self):
        """
            Summary:
                最近使用贴纸列表
        :return:
        """
        xpath_ = '//UIATableView[1]/UIATableCell[2]'
        cell = table_cell.UIATableCell(self.base_parent, xpath=xpath_)

        return button.UIAButtonList(cell, type='UIAButton').button_list
 def my_keep_template_list(self):
     """
         Summary:
             收藏的模板列表
     :return:
     """
     xpath_ = '//UIAApplication[1]/UIAWindow[1]/UIAScrollView[2]/UIATableView[1]/UIATableCell[6]'
     cell = table_cell.UIATableCell(self.base_parent, xpath=xpath_)
     # 第一个元素为按钮,移出列表
     return button.UIAButtonList(cell, type='UIAButton').button_list[1:]
 def my_custom_paster_list(self):
     """
         Summary:
             我的自定义贴纸列表
     """
     xpath_ = '//UIATableView[1]/UIATableCell[4]'
     cell = table_cell.UIATableCell(self.base_parent, xpath=xpath_)
     # 第一个元素为按钮,移出列表
     button_list = button.UIAButtonList(cell,
                                        type='UIAButton').button_list[1:]
     button_list = [
         m_button for m_button in button_list if not m_button.text == 'new'
     ]
     return button_list
Example #15
0
 def story_tab_in_diary_album_bar(self):
     """
         Summary:
             写故事tab下,展开下拉列表后,in记相册栏
     """
     return table_cell.UIATableCell(self.parent, name='in记相册')