Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pything:python_uatomation:interacting_with_controls [2024/08/25 20:59] – created 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 | ||
- | |||
- | | [' | ||
- | | 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=" | ||
- | </ |