I just installed a new version of our AUT. In this new version Ranorex is not able to find objects using my existing code.
For example, to find a button on the toolbar I use this code (removed some code for simplicity):
Code: Select all
Ranorex.Form RanorexFormName = Host.Local.FindSingle("/form[@title~'Hard Dollar.*']", 10000);
RanorexFormName.EnsureVisible();
RanorexFormName.Activate();
Ranorex.Button Button = RanorexFormName.FindSingle(".//button[@accessiblename='Resource Rate']", 10000);
Code: Select all
/form[@controlname='frmMainDialog']/toolbar/*/button[@accessiblename='Resource Rate']
Code: Select all
Ranorex.ElementNotFoundException: No element found for path './/button[@accessiblename='Resource Rate']'within 10s.
at Ranorex.Core.Element.FindSingle(RxPath path, Duration timeout)
at Ranorex.Adapter.FindSingle(RxPath path, Duration timeout)
at H_ReportsTest.Program.Main(String[] args) in C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\H$ReportsTest\H$ReportsTest\Program.cs:line 44
Code: Select all
Ranorex.Button Button = RanorexFormName.FindSingle("/form[@controlname='frmMainDialog']/toolbar/*/button[@accessiblename='Resource Rate']", 10000);
Thanks...