Hello,
is there any documentation how the type Ranorex.Plugin.WpfRemoteObject can be used?
In my repo I have a ComboBox that has an attribute DataContext where a WpfRemote<ComboBoxViewModel> is stored.
Is there any way to access the ComboBoxViewModel item that is stored in the WpfRemote object?
I tried to cast WpfRemote to ComboBoxViewModel, but this did not work.
Is there any way to access the object of type ComboBoxViewModel?
Regards.
Use of a Ranorex.Plugin.WpfRemoteObject ?
-
- Posts: 1
- Joined: Tue Jun 15, 2021 1:29 pm
Re: Use of a Ranorex.Plugin.WpfRemoteObject ?
Hi Leif,
Apologies for the delay in response on this one. We had to go digging in the code to find the answer ourselves! As it turns out, the WpfRemoteObject works almost as an accessibility check for an object. If the object exists, then you can use WpfRemoteObject to attempt to read an attribute value. This seems primarily intended as a workaround for objects that Ranorex should recognize, but doesn't. If you do find that there is an object within the standard Windows control set (System.Windows.Controls) that Ranorex can't find, please contact support to file a bug report.
--Jacob
Apologies for the delay in response on this one. We had to go digging in the code to find the answer ourselves! As it turns out, the WpfRemoteObject works almost as an accessibility check for an object. If the object exists, then you can use WpfRemoteObject to attempt to read an attribute value. This seems primarily intended as a workaround for objects that Ranorex should recognize, but doesn't. If you do find that there is an object within the standard Windows control set (System.Windows.Controls) that Ranorex can't find, please contact support to file a bug report.
--Jacob