DevExpress table and UIAutomationValue Value : Object Identification and Technologies

DevExpress table and UIAutomationValue Value

Technology specific object identification, supported applications, web technologies, and 3rd party controls.

DevExpress table and UIAutomationValue Value

Postby werner » Thu Oct 27, 2011 2:55 pm

Hi guys,
I'm just a beginner with Ranorex and I'm trying to find a way for accessing the UIAutomationValue Value of an element of a DevExpress table.
I can see that property in Spy and also in the Properties (Live Element section), but trying to use it
via the objects' hierarchy (MyRepository.MyForm.ContainerDataPanel1.MyElement1) I don't find it and so I can't use it.

So I've a question:
how to access that property in my C# user code?
More details: I need to verify the content of the element MyElement1 and compare it with a string.

Thank you very much
W
werner
 
Posts: 2
Joined: Thu Oct 27, 2011 2:39 pm

Re: DevExpress table and UIAutomationValue Value

Postby Ciege » Thu Oct 27, 2011 4:55 pm

Can you post a snapshot of RanorexSpy while pointing it to your DexExpress table please?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: DevExpress table and UIAutomationValue Value

Postby werner » Thu Oct 27, 2011 5:29 pm

Hi Ciege,
I attached a "censored" snapshot: do you think it's enough?

Thank you very much for your help
W
Attachments
snapshot.JPG
snapshot.JPG (172.29 KiB) Viewed 99 times
werner
 
Posts: 2
Joined: Thu Oct 27, 2011 2:39 pm

Re: DevExpress table and UIAutomationValue Value

Postby Ciege » Thu Oct 27, 2011 7:18 pm

Since you asked this way:
how to access that property in my C# user code?
that's how I will answer it...

1st, if you get a reference to the object you want, for example the cell that you have shown, you can then get the property of that object and set it as a string variable.

For example:

Code: Select all
Ranorex.element myElement = xPath;
string myUIString = myElement.GetAttributeValue("UIAutomationValueValue").ToString()
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA


Return to Object Identification and Technologies

Who is online

Users browsing this forum: No registered users and 0 guests