You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I would like to know if there is any possibility to get the patterns of a WindowsElement.
In the screenshot, I've added, you can see which value I would like to have of the TogglePattern. The element is a button in this case.
The Selected-Attribute of the WindowsElement of the button returns always false, so it seems that I need the ToggleState for checking if the button is selected, or not.
I also tried it with element.GetAttribute("TogglePattern") and element.GetAttribute("ToggleState"), but it always returns null, also when I use the GetProperty-method with this.
Beside that, it would make my life much easier if there is a way to access also the other patterns like ScrollPattern etc.
Anybody an idea?
The text was updated successfully, but these errors were encountered:
Hi,
I would like to know if there is any possibility to get the patterns of a WindowsElement.
In the screenshot, I've added, you can see which value I would like to have of the TogglePattern. The element is a button in this case.
The Selected-Attribute of the WindowsElement of the button returns always false, so it seems that I need the ToggleState for checking if the button is selected, or not.
I also tried it with element.GetAttribute("TogglePattern") and element.GetAttribute("ToggleState"), but it always returns null, also when I use the GetProperty-method with this.
Beside that, it would make my life much easier if there is a way to access also the other patterns like ScrollPattern etc.
Anybody an idea?
The text was updated successfully, but these errors were encountered: