Ranorex 3.0 issue with Ranorex.Core.PathBuildMode.Reduce
Posted: Thu Mar 03, 2011 12:07 am
Just installed 3.0 and began testing with it... I am having an issue with this following line of code:
In short, I get a Ranorex.ElementNotFoundException. This worked fine in 2.3.
Here is the full exception:
RanorexSpy does indeed show a different xPath for the element:
Code: Select all
Ranorex.Row HDTableRow = Host.Local.FindSingle(HDTable.GetPath(Ranorex.Core.PathBuildMode.Reduce).ToString() + "/row[@accessiblename='NewItem Row']", 30000);
Here is the full exception:
Code: Select all
Ranorex.ElementNotFoundException: No element found for path '/form[@controlname='frmMainDialog']/element/form/container/tabpagelist/tabpage[@controlname='mTabPageInstalledMaterial']/element/table[@accessiblename='Find:']/row[@accessiblename='NewItem Row']' within 30s.
at Ranorex.Core.Element.FindSingle(RxPath path, Duration timeout)
at Ranorex.Adapter.FindSingle(RxPath path, Duration timeout)
at Package_Price_Quote_Reg_Test.Program.CreateNewResource(Form HDClientForm, String strResourceRateType, String strResourceCode, String strDescription, String strDefaultQuantity, String strUnitOfMeasure) in \\XPRNRX\projects\Package Price Quote Reg Test\Package Price Quote Reg Test\Program.cs:line 16535
RanorexSpy does indeed show a different xPath for the element:
Code: Select all
/form[@controlname='frmMainDialog']/element/form/container/tabpagelist/tabpage[@controlname='mTabPageInstalledMaterial']/element/table/container[@accessiblename='Data Panel']/row[@accessiblename='NewItem Row']