def __init__(self, parent): super(TopicDetailActivity, self).__init__(parent) # 等待页面网络请求进行初始化 self.wait_for_element_present(self.parent, id='com.jiuyan.infashion:id/toolbar') self._scroll_view = frame_layout.FrameLayout( self.parent, id='com.jiuyan.infashion:id/drag_layout')
def __init__(self, parent): super(PersonalPhotoAlbumActivity, self).__init__(parent) # 等待页面网络请求进行初始化 self.wait_for_element_present(self.parent, id='com.jiuyan.infashion:id/toolbar') self._scroll_view = frame_layout.FrameLayout( self.parent, id='com.jiuyan.infashion:id/vp_photo_detail')
def subscription_button(self): """ Summary: 订阅按钮 """ id_ = 'com.jiuyan.infashion:id/subscribe' return frame_layout.FrameLayout(self.parent, id=id_)
def back_button(self): """ Summary: 返回按钮 """ id_ = 'com.jiuyan.infashion:id/layout_left' return frame_layout.FrameLayout(self.parent, id=id_)
def move_up_button(self): """ Summary: 上移按钮 """ id_ = 'com.jiuyan.infashion:id/story_edit_item_up_btn' return frame_layout.FrameLayout(self._layout_view, id=id_)
def delete_diary_page_button(self): """ Summary: 侧边栏删除故事按钮 :return: """ id_ = 'com.jiuyan.infashion:id/story_edit_item_rm' return frame_layout.FrameLayout(self._layout_view, id=id_)
def camera(self): """ Summary: 相机按钮 """ xpath_ = '//android.widget.GridView[@resource-id="com.jiuyan.infashion:id/id_gridView"]/' \ 'android.widget.FrameLayout[1]' return frame_layout.FrameLayout(self.base_parent, xpath=xpath_)
def add_diary_photo_button(self): """ Summary: 侧边栏故事图片添加按钮 :return: """ id_ = 'com.jiuyan.infashion:id/story_edit_item_add' return frame_layout.FrameLayout(self._layout_view, id=id_)
def photo(self): """ Summary: 照片面板 :return: """ id_ = 'com.jiuyan.infashion:id/story_edit_item_image_layout' return frame_layout.FrameLayout(self._layout_view, id=id_)
def cover(self): """ Summary: in记封面 Returns: """ id_ = 'com.jiuyan.infashion:id/diary_user_header_holder' return frame_layout.FrameLayout(self.parent, id=id_)
def add_paseter_button(self): """ Summary: 添加贴纸按按钮 """ view_pager_ = view_pager.ViewPager( self.parent, id='com.jiuyan.infashion:id/cp_pager') # id为cp_pager的view_pager的第一个layout_root元素为添加贴纸按钮 return frame_layout.FrameLayout( view_pager_, id='com.jiuyan.infashion:id/layout_root')
def __init__(self, parent): super(FriendPhotoDetailActivity, self).__init__(parent) # 等待页面网络请求进行初始化 if self.wait_for_element_present( self.parent, id='com.jiuyan.infashion:id/friend_title_bar'): self._scroll_view = frame_layout.FrameLayout( self.parent, id='com.jiuyan.infashion:id/lv_friend_photo_detail_comment_list' ) else: raise
def add_template_button(self): """ Summary: 添加模板按钮 """ view_pager_ = view_pager.ViewPager( self.parent, id='com.jiuyan.infashion:id/playtips_pager') # id为playtips_pager的view_pager的第一个layout_root元素为添加模板按钮 return frame_layout.FrameLayout( view_pager_, id='com.jiuyan.infashion:id/layout_root')
def __init__(self, parent): super(CustomPasterMsgBox, self).__init__(parent) self._layout_view = frame_layout.FrameLayout( self.parent, type='android.widget.FrameLayout')
def __init__(self, parent): super(PersonalMainActivity, self).__init__(parent) self._scroll_view = frame_layout.FrameLayout( self.parent, id='com.jiuyan.infashion:id/drag_layout')
def __init__(self, parent): super(CropperImageActivity, self).__init__(parent) self.__frame_view = frame_layout.FrameLayout(self.parent, id='android:id/content')
def __init__(self, parent): super(TopicSquareActivity, self).__init__(parent) self._scroll_view = frame_layout.FrameLayout( self.parent, id='com.jiuyan.infashion:id/base_fragment_id')
def __init__(self, parent): super(StoryGalleryActivity, self).__init__(parent) self._layout_view = frame_layout.FrameLayout( self.parent, type='android.widget.FrameLayout')
def __init__(self, parent): super(LoginMainActivity, self).__init__(parent) self.__current_fragment_id = 'com.jiuyan.infashion:id/base_fragment_id' self.__current_fragment = frame_layout.FrameLayout(self.parent, id=self.__current_fragment_id)
def __init__(self, parent): super(PhotoPickerActivity, self).__init__(parent) self.__frame_view = frame_layout.FrameLayout(self.parent, id='android:id/content')