Esempio n. 1
0
    def __init__(self):
        self.gallery_setup = appsetUp(driver=None)

        # App Info
        self.gallery_pkgname = 'com.meizu.media.gallery'
        self.gallery_mainActivity = '.GalleryActivity'
        self.gallery_surface = 'com.meizu.media.gallery/com.meizu.media.gallery.GalleryActivity'
Esempio n. 2
0
    def __init__(self):
        self.wechat_setup = appsetUp(driver=None)

        # App Info
        self.wechat_pkgname = 'com.tencent.mm'
        self.wechat_mainActivity = 'com.tencent.mm.ui.LauncherUI'
        self.wechat_surface = 'com.tencent.mm/com.tencent.mm.ui.LauncherUI'
        self.wechat_moments_layer = 'com.tencent.mm/com.tencent.mm.plugin.sns.ui.En_424b8e16'

        # Element Info
        self.monentsbtn = 'com.tencent.mm:id/ayf'  # 底栏 朋友圈按钮  com.tencent.mm:id/awt
        self.monents_btn = 'com.tencent.mm:id/a9i'  # 朋友界面 万花筒图标  com.tencent.mm:id/a95
        self.monent_photo_icon = '(//android.widget.ImageButton[@content-desc="头像"])[1]'  # 朋友圈 朋友头像 com.tencent.mm:id/aoj
        self.me_photo_icon = '//android.widget.ImageView[@content-desc="老化小霸王,我的头像,再点一次可以进入我的相册"]'  # 我的相册界面 个人头像
        self.chatinfo = '//android.widget.ImageButton[@content-desc="聊天信息"]'  # 好友聊天信息(右上角) 按钮
        self.chatinfo_item = 'android:id/title'  # chat info 界面 item信息
        self.nikname = "com.tencent.mm:id/ha"  # 对话详情界面 朋友昵称
        self.friend_name = "com.tencent.mm:id/apt"  # 对话列表界面 昵称
        self.edit = "com.tencent.mm:id/aaf"  # 对话界面 输入框
        self.sendbtn = 'com.tencent.mm:id/aal'  # 对话界面 发送按钮
        self.contactitem = 'com.tencent.mm:id/j1'  # 联系人界面 好友item
        self.selfalbum = 'com.tencent.mm:id/c96'  # 个人相册 item

        self.morebtn_xpath = '//android.widget.ImageButton[@content-desc="更多功能按钮,已折叠"]'  # 功能折叠按钮
        self.album = 'com.tencent.mm:id/op'  # 聊天功能item list ID

        self.pic_selected = 'com.tencent.mm:id/bnk'  # 选择第一张图片 勾选框
        self.pic_comfirm = 'com.tencent.mm:id/h5'  # 选择照片中的 确定 按钮
        self.pic = 'com.tencent.mm:id/aee'  # 聊天记录中的图片

        self.searchbtn = '//android.widget.TextView[@content-desc="搜索"]'  # 联系人搜索按钮
        self.search_edit = 'com.tencent.mm:id/hk'  # 联系人搜索框
Esempio n. 3
0
    def __init__(self):
        self.zhihu_setup = appsetUp(driver=None)

        # App Info
        self.zhihu_pkgname = 'com.zhihu.android'
        self.zhihu_mainActivity = '.app.ui.activity.MainActivity'
        self.zhihu_surface = 'com.zhihu.android/com.zhihu.android.app.ui.activity.MainActivity'

        # Element Info
        self.ViewpageID1 = 'com.zhihu.android:id/title'
Esempio n. 4
0
    def __init__(self):
        self.toutiao_setup = appsetUp(driver=None)

        # App Info
        self.tt_pkgname = 'com.ss.android.article.news'
        self.tt_mainActivity = '.activity.SplashActivity'
        self.tt_surface = 'com.ss.android.article.news/com.ss.android.article.news.activity.MainActivity'

        # Element Info
        self.ViewpageID1 = ''
Esempio n. 5
0
    def __init__(self):
        self.settings_setup = appsetUp(driver=None)

        # App Info
        self.settings_pkgname = 'com.android.settings'
        self.settings_mainActivity = '.Settings'
        self.settings_surface = 'com.android.settings/com.android.settings.Settings'

        # Element Info
        self.wifiicon = 'com.android.settings:id/title'  # com.android.settings:id/title [2]
        self.searchicon = 'com.android.settings:id/search'  # com.android.settings:id/search  搜索id
Esempio n. 6
0
    def __init__(self):
        self.systemui_setup = appsetUp(driver=None)

        # App Info
        self.systemui_pkgname = 'com.android.systemui'
        self.systemuirecents_pkgname = 'com.android.systemui:recents'
        self.systemui_surface = 'StatusBar'
        self.systemui_recents_layer = 'com.android.systemui/com.flyme.systemui.recents.RecentsEmptyActivity'
        self.systemui_recents = 'com.android.systemui:recents'
        self.launcher_pkgname = 'com.meizu.flyme.launcher'
        self.launcher_layer = 'com.meizu.flyme.launcher/com.meizu.flyme.launcher.Launcher'
Esempio n. 7
0
    def __init__(self):
        self.neteasenews_setup = appsetUp(driver=None)

        # App Info
        self.neteasenews_pkgname = 'com.netease.newsreader.activity'
        self.neteasenews_mainActivity = 'com.netease.nr.biz.ad.AdActivity'
        self.neteasenews_surface = 'com.netease.newsreader.activity/com.netease.nr.phone.main.MainActivity'
        self.neteasenews_detailActivity = 'com.netease.newsreader.activity/com.netease.nr.biz.news.detailpage.NewsPageActivity'

        # Element Info
        self.newsitem = ''
Esempio n. 8
0
    def __init__(self):
        self.weibo_setup = appsetUp(driver=None)

        # App Info
        self.weibo_pkgname = 'com.sina.weibo'
        self.weibo_mainActivity = 'com.sina.weibo.VisitorMainTabActivity'
        self.weibo_surface = 'com.sina.weibo/com.sina.weibo.VisitorMainTabActivity'

        # Element Info
        self.ViewpageID1 = 'com.sina.weibo:id/plus_icon'
        self.firstpage_xpath = '//android.view.View[@content-desc="微博"]'
        self.btn_hotpage_xpath = '/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.TabHost/android.widget.FrameLayout[2]/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.LinearLayout[2]/android.widget.LinearLayout/android.widget.TextView'
Esempio n. 9
0
    def __init__(self):
        self.tb_setup = appsetUp(driver=None)

        # App Info
        self.tb_pkgname = 'com.taobao.taobao'
        self.tb_mainActivity = 'com.taobao.tao.homepage.MainActivity3'
        self.tb_surface = 'com.taobao.taobao/com.taobao.tao.homepage.MainActivity3'
        self.tb_searchresult = 'com.taobao.taobao/com.taobao.search.mmd.SearchResultActivity'
        self.tb_goodsdetail = 'com.taobao.taobao/com.taobao.tao.detail.activity.DetailActivity'

        # Element Info
        self.ViewpageID1 = ''
        self.taobao_search_bar = 'com.taobao.taobao:id/home_searchedit'
        self.taobao_search_btn = 'com.taobao.taobao:id/searchbtn'
        self.gooditem = 'com.taobao.taobao:id/goodsimage'