Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
pything:python_uatomation:interacting_with_controls [2024/08/25 21:01] – jcorona | pything:python_uatomation:interacting_with_controls [2024/08/25 21:34] (current) – removed jcorona | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Finding specific windows and text boxes and interacting with them ====== | ||
- | Use the following to find all windows and controls within a given application. \\ | ||
- | You can use something like **UISpy** to help narrow down the panel or window you want to search in and then use it's title as part of your input. | ||
- | |||
- | <code python> | ||
- | specific_panel = main_window.child_window(title=" | ||
- | specific_panel.print_control_identifiers() | ||
- | </ | ||
- | \\ | ||
- | Find specific control that has the text you want... like in this case.\\ | ||
- | The good news is, control names don't tend to change when you search like this, but automation_ids and handles might change. \\ | ||
- | Easier to just call by control name. \\ | ||
- | |||
- | | [' | ||
- | | child_window(title=" | ||
- | \\ | ||
- | Wow we can select and copy this text by doing the following: | ||
- | <code python> | ||
- | main_window.child_window(title=" | ||
- | </ | ||
- | \\ | ||
- | Now copy the text: | ||
- | <code python> | ||
- | main_window.child_window(title=" | ||
- | </ | ||
- | \\ | ||
- | Now you can paste in another typable field: | ||
- | |||
- | <code python> | ||
- | main_window.child_window(class_name=" | ||
- | </ |