Is there a way to check the toggle status of an object that has no control_type="CheckBox")

39 Views Asked by At

I'm trying to check the toggle status of a checkbox however it doesn't have a control type "CheckBox". | | | | | | | | | | Static - 'Pairings:' (L299, T1063, R343, B1079) | | | | | | | | | | ['Pairings:', 'Pairings:Static', 'Static129'] | | | | | | | | | | child_window(title="Pairings:", control_type="Text") | | | | | | | | | | | | | | | | | | | | CheckBox - '' (L343, T1063, R363, B1079) | | | | | | | | | | ['CheckBox12', 'Pairings:CheckBox']

here is what it tools like via automation spy tool enter image description here

enter image description here

I have other checkboxes and the code I used to check the toggle status is element.child_window(auto_id="uxCheckOverComplemented", control_type="CheckBox").get_toggle_state()

Any recommendation is appreciated.

element.child_window(auto_id="uxCheckOverComplemented", control_type="CheckBox").get_toggle_state()

0

There are 0 best solutions below