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
DevExpress table and UIAutomationValue Value
Re: DevExpress table and UIAutomationValue Value
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...
Ciege...
Re: DevExpress table and UIAutomationValue Value
Hi Ciege,
I attached a "censored" snapshot: do you think it's enough?
Thank you very much for your help
W
I attached a "censored" snapshot: do you think it's enough?
Thank you very much for your help
W
You do not have the required permissions to view the files attached to this post.
Re: DevExpress table and UIAutomationValue Value
Since you asked this way:
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:
that's how I will answer it...how to access that property in my C# user code?
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...
Ciege...
Re: DevExpress table and UIAutomationValue Value
Worked for me to get the value of an infragistics grid cell:
private void Init()
{
string gmTEST;
// Your recording specific initialization code goes here.
gmTEST = repo.MainWindow.TextBlock_GEMUR.Element.GetAttributeValue("UIAutomationValueValue").ToString();
Report.Info("### gmTEST=|" + gmTEST + "|");
}
BR
Georg
private void Init()
{
string gmTEST;
// Your recording specific initialization code goes here.
gmTEST = repo.MainWindow.TextBlock_GEMUR.Element.GetAttributeValue("UIAutomationValueValue").ToString();
Report.Info("### gmTEST=|" + gmTEST + "|");
}
BR
Georg