Hi,
Using ranorex I want to pick the GridControl Cell value like- ANDHRA, For that I am using the Existng code
from your Forum But Exception is comming Like -This is not recognized path.
But I am picking the path of particular cell for gridControl using RanorexSPY.
I have already added all referances and namespaces also.
I am using the Code--------
Ranorex.UIAutomation uia = "/form[@controlname='Form1']/table[@controlname='dataGridView1']/row[@accessiblename='Row 0']/cell[@accessiblename='Name Row 0']";
string value = (string)uia.AutomationElement.GetCurrentPropertyValue(ValuePattern.ValueProperty);
I request to you please send thesolution As soon as possible .
Regards,
Hari
How to pick the GridControl cell Value using renorex
How to pick the GridControl cell Value using renorex
- Attachments
-
- Application File Demo
- Form.jpg (92.47 KiB) Viewed 1406 times
-
- SPY Ranorex
- SnapsShot.jpg (107.78 KiB) Viewed 1406 times
Re: How to pick the GridControl cell Value using renorex
Is there a reason you are using Ranorex.UIAutomation rather than Ranorex.Cell to get the cell?Hari wrote:
Ranorex.UIAutomation uia = "/form[@controlname='Form1']/table[@controlname='dataGridView1']/row[@accessiblename='Row 0']/cell[@accessiblename='Name Row 0']";
string value = (string)uia.AutomationElement.GetCurrentPropertyValue(ValuePattern.ValueProperty);
You can try something like this (if you want to keep it hard coded).
Code: Select all
Ranorex.Cell MyCell= "/form[@controlname='Form1']/table[@controlname='dataGridView1']/row[@accessiblename='Row 0']/cell[@accessiblename='Name Row 0']";
string MyString = MyCell.Element.GetAttributeValue("AccessibleValue").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: How to pick the GridControl cell Value using renorex
Hi,
This is not a suitable solution as I want.
This is not a suitable solution as I want.
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: How to pick the GridControl cell Value using renorex
Hi,
Ciege already asked
Would it be possible to post us a Ranorex Snapshot of your entire solution, then we can provide you another solution?
How to create a Ranorex Snapshot
Regards,
Peter
Ranorex Team
Ciege already asked
I ask you again. Is there a reason why you use UIAutomation for WinForms?Ciege wrote:Is there a reason you are using Ranorex.UIAutomation rather than Ranorex.Cell to get the cell?
The solution provided by ciege is exactly the solution you need for WinForms.Hari wrote:This is not a suitable solution as I want.
Would it be possible to post us a Ranorex Snapshot of your entire solution, then we can provide you another solution?
How to create a Ranorex Snapshot
Regards,
Peter
Ranorex Team