Beispiel #1
0
def select_dialog_click(entry):
    list_id = interface.get_view_by_class("AlertController$RecycleListView")
    if list_id is None:
        raise WidgetNotFound("no selection dialog visible")
    child_id = interface.get_view_child(list_id, entry)
    if child_id is None:
        raise WidgetNotFound("no entry %d in selection dialog" % entry)
    interface.click(child_id)
Beispiel #2
0
def select_dialog_click(entry):
    list_id = interface.get_view_by_class("AlertController$RecycleListView")
    if list_id is None:
        raise WidgetNotFound("no selection dialog visible")
    child_id = interface.get_view_child(list_id, entry)
    if child_id is None:
        raise WidgetNotFound("no entry %d in selection dialog" % entry)
    interface.click(child_id)
Beispiel #3
0
def get_list_item_id(list, entry):
    list_id = get_widget_id(list)
    return interface.get_view_child(list_id, entry)
Beispiel #4
0
def get_list_item_id(list, entry):
    list_id = get_widget_id(list)
    return interface.get_view_child(list_id, entry)
Beispiel #5
0
def click_icon(entry_num):
    keyboard.press_menu()
    menu_id = widget.get_widget_id("android:icon_menu")
    entry_id = interface.get_view_child(menu_id, entry_num)
    interface.click(entry_id)
Beispiel #6
0
def click_icon(entry_num):
    keyboard.press_menu()
    menu_id = widget.get_widget_id("android:icon_menu")
    entry_id = interface.get_view_child(menu_id, entry_num)
    interface.click(entry_id)