can't access specific property of repository element in code
Posted: Thu Jan 16, 2014 6:05 pm
Hi, the app that I'm looking to automate basically uses cells to render its data. It looks something like this, and I've added an arrow to show the element I'm interested in:
The first thing I've done is a Validate on that element (during a Record), which is then compared to a separate variable. If the values match, it passes. The line for the validation (auto-generated by Ranorex) is:
Validate.Attribute(repo.TaxUseMockUp.topCellUAPInfo, "UIAutomationValueValue", varTaxAllocValue);
where topCellUAPInfo is the element name, UIAutomationValueValue is the property, and varTaxAllocValue is the variable. If I look at the repository item in Spy, I see the property here:
However, I want to directly access that value and work with it. But if I try to directly drill down into it via the code (i.e. repo.TaxUseMockUp.topCellUAP.etc.) I can't locate the value. Obviously, the property is accessible - Ranorex can validate off of it, and I can see it in Spy. Can anyone offer insight on how to drill into it using code? Thanks!
The first thing I've done is a Validate on that element (during a Record), which is then compared to a separate variable. If the values match, it passes. The line for the validation (auto-generated by Ranorex) is:
Validate.Attribute(repo.TaxUseMockUp.topCellUAPInfo, "UIAutomationValueValue", varTaxAllocValue);
where topCellUAPInfo is the element name, UIAutomationValueValue is the property, and varTaxAllocValue is the variable. If I look at the repository item in Spy, I see the property here:
However, I want to directly access that value and work with it. But if I try to directly drill down into it via the code (i.e. repo.TaxUseMockUp.topCellUAP.etc.) I can't locate the value. Obviously, the property is accessible - Ranorex can validate off of it, and I can see it in Spy. Can anyone offer insight on how to drill into it using code? Thanks!