|
20 | 20 | from .ui.camera_activity import CameraActivity |
21 | 21 | from .ui.keyboard import MposKeyboard |
22 | 22 | from .ui.testing import ( |
23 | | - wait_for_render, capture_screenshot, simulate_click, |
24 | | - find_label_with_text, verify_text_present, print_screen_labels, |
25 | | - click_button, click_label, click_keyboard_button |
| 23 | + wait_for_render, capture_screenshot, simulate_click, get_widget_coords, |
| 24 | + find_label_with_text, verify_text_present, print_screen_labels, find_text_on_screen, |
| 25 | + click_button, click_label, click_keyboard_button, find_button_with_text, |
| 26 | + get_all_widgets_with_text |
26 | 27 | ) |
27 | 28 |
|
28 | 29 | # UI utility functions |
@@ -85,9 +86,10 @@ def __getattr__(name): |
85 | 86 | "shutdown", "set_foreground_app", "get_foreground_app", |
86 | 87 | "focus_direction", |
87 | 88 | # Testing utilities |
88 | | - "wait_for_render", "capture_screenshot", "simulate_click", |
89 | | - "find_label_with_text", "verify_text_present", "print_screen_labels", |
90 | | - "click_button", "click_label", "click_keyboard_button", |
| 89 | + "wait_for_render", "capture_screenshot", "simulate_click", "get_widget_coords", |
| 90 | + "find_label_with_text", "verify_text_present", "print_screen_labels", "find_text_on_screen", |
| 91 | + "click_button", "click_label", "click_keyboard_button", "find_button_with_text", |
| 92 | + "get_all_widgets_with_text" |
91 | 93 | # Submodules |
92 | 94 | "apps", "ui", "config", "net", "content", "time", "sensor_manager", |
93 | 95 | "sdcard", "battery_voltage", "audio", "hardware", "bootloader" |
|
0 commit comments