Пример #1
0
    def __get_audio_alltime_ele(self):
        # 最新酷我音乐界面分析
        package_name = d.info['currentPackageName']
        if package_name == 'cn.kuwo.kwmusiccar':
            return uit.get_ele_by_resourceId(package_name + ':id/tvTime')

        return uit.get_ele_by_resourceId(pkg_name + ':id/txt_alltime')
Пример #2
0
 def back_from_kuwo(self):
     # package_name = d.info['currentPackageName']
     back = uit.get_ele_by_resourceId(
         'cn.kuwo.kwmusiccar:id/layoutPlayControlPanel')
     if back.wait.exists():
         back.click.wait()
     else:
         uit.raise_Exception_info('从酷我返回到音乐控件不存在')
Пример #3
0
    def __init__(self):
        # 新旧版本的pkgname判断
        global pkg_name
        pkg_name = "com.pateonavi.naviapp"

        skip = uit.get_ele_by_resourceId(pkg_name + ':id/skip')
        if skip.wait.exists():
            skip.click.wait()
Пример #4
0
    def __get_audio_kuwo_name_ele(self):
        # 针对新版酷我音乐
        package_name = d.info['currentPackageName']
        if package_name == 'cn.kuwo.kwmusiccar':
            home = uit.get_ele_by_resourceId(package_name + ':id/layout_home')
            if home.wait.exists():
                home.click.wait()

            ele = uit.get_ele_by_text('精选电台')
            if ele.wait.exists():
                ele.click.wait()
                tj_ele = uit.get_ele_by_text('推荐')
                if tj_ele.wait.exists():
                    tj_ele.click.wait()
                    return uit.get_ele_by_text('一人一首成名曲')
Пример #5
0
 def __get_phone_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/app_phone')
Пример #6
0
 def __get_navi_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/app_nav')
Пример #7
0
 def __get_audio_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/app_music')
Пример #8
0
 def get_navi_satellite_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/iv_satellite')
Пример #9
0
 def __get_clock_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/ivoka_time_text')
Пример #10
0
 def __get_qplay_local_drawer_ele(self):
     return uit.get_ele_by_resourceId('pateo.dls.qplay:id/drawer')
Пример #11
0
 def __get_qplay_play_name_ele(self):
     return uit.get_ele_by_resourceId('pateo.dls.qplay:id/title')
Пример #12
0
 def __get_video_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/app_video')
Пример #13
0
 def __get_others_home_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/home')
Пример #14
0
 def get_navi_search_city_bar_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/search_bar_img1')
Пример #15
0
 def __get_car_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/app_car')
Пример #16
0
 def get_navi_nearby_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/menu_nearby')
Пример #17
0
 def get_navi_search_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/menu_search')
Пример #18
0
 def get_navi_to_dest_time_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/tv_navigation_number')
Пример #19
0
 def __get_navi_home_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/go_home')
Пример #20
0
 def get_navi_zoomSeekBar_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/zoomSeekBar')
Пример #21
0
 def __get_service_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/app_service')
Пример #22
0
 def get_navi_search_cancel_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/search_cancel')
Пример #23
0
 def __get_others_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/app_mobile')
Пример #24
0
 def get_navi_search_city_list_item(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/list_item_tip')
Пример #25
0
 def __get_qplay_selector_ele(self):
     return uit.get_ele_by_resourceId(
         'pateo.dls.qplay:drawable/selector_menu_local')
Пример #26
0
    def __get_menu_ele(self):

        return uit.get_ele_by_resourceId(pkg_name + ':id/all_app_home_button')
Пример #27
0
 def __get_qplay_local_name_ele(self):
     return uit.get_ele_by_resourceId(
         'pateo.dls.qplay:id/drawer_list_category_text')
Пример #28
0
 def __get_tip_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/air_quality_text')
Пример #29
0
 def __get_qplay_home_ele(self):
     return uit.get_ele_by_resourceId(
         'pateo.dls.qplay:drawable/selector_button_home')
Пример #30
0
 def __get_temperature_ele(self):
     return uit.get_ele_by_resourceId(pkg_name + ':id/temperature_icon')