-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom attributes/properties in WinAppDriver. #2047
Comments
Thanks @anunay1 . That's useful and it works. Tested I was originally asking if the set of retrievable attributes could be expanded to something arbitrary instead of those values on Do you see any issues with hijacking Thanks again. |
I don't see any issue in highjacking as long as it's shown in inspect.exe. And in visual studio there is an option to enable automation properties some checkbox please check . It's very helpful as you don't need to write code manually. |
Sorry, but you lost me with that last bit. I'm not sure what that setting is or what it enables. I also don't understand how I don't have to write any code manually. I don't have to write much for our custom controls -- just a single override. Not sure how Visual Studio itself would know about domain-specific Just wanna make sure I'm not missing something you're trying to emphasize. |
Leave it seems like they have removed that option in latest versions of visual studio |
I'm testing a WPF app and have tried exposing some public properties from my custom control
AutomationPeer
classes. The goal is to enable our UI tests to callGetProperty
/GetAttribute
to infer some additional context about the element. In my attempts thus far,GetProperty
throws an exception andGetAttribute
returnsnull
.Is there a way to do this?
The text was updated successfully, but these errors were encountered: