Get or set value from UIAutomation patterns

Ranorex Spy, Recorder, and Studio.
marcello
Posts: 1
Joined: Thu Apr 18, 2019 11:19 am

Get or set value from UIAutomation patterns

Post by marcello » Thu Apr 18, 2019 11:33 am

Hello Support,

We have a component that supports both WinForms and WPF platforms and we need to use LegacyIAccessiblePattern for WinForms and ValuePattern for WPF to set or get some custom values.

In the attachment an example of classes used for testing purpose and in the link below a short video showing how Inspect tool identifies those properties.
https://www.screencast.com/t/Zizj0TtrT

Does Ranorex support this feature?
If yes, how can we set or get those values with Ranorex Studio?
Attachments
MyModelWinForms.cs
(1.64 KiB) Downloaded 11 times
MyModelWPF.cs
(2.4 KiB) Downloaded 9 times

qwertzu
Posts: 247
Joined: Wed Jan 25, 2017 11:08 am

Re: Get or set value from UIAutomation patterns

Post by qwertzu » Fri Apr 19, 2019 9:31 am

Hello marcello,

Without a Ranorex Snapshot it is hardly possible to help you here.
Please upload such a snapshot so we can analyze these elements.

regards, qwertzu