thebrowsercompany / swift-webdriver

A Swift library for communicating with WebDriver (Appium/WinAppDriver) endpoints
BSD 3-Clause "New" or "Revised" License
101 stars 3 forks source link

Expose attribute names from UI Automation #93

Closed tristanlabelle closed 1 year ago

tristanlabelle commented 1 year ago

There are several standard properties that can be used with Element.getAttribute. We should expose these to avoid them getting hardcoded like "HasKeyboardFocus" in tests currently.

Open question: How to get the list of string-typed automation property ids?

https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-automation-element-propids https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelementidentifiers https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation