1) The TabPage controls have text and an 'X' close button on them. Ranorex can find the TabPage controls but cannot find or click the 'X'. See the TabPage control attachment below. When I try to get Ranorex to click the 'X' button I have it click the TabPage control at Location.CenterRight, but it only clicks at the end of the text on the tab not on the 'X' button.
2) This one is a bit more strange. If I use the following code I can get the TabPage object:
Code: Select all
Ranorex.TabPage HDTabPage = Host.Local.FindSingle("/form[@controlname='frmMainDialog']/element[@controlname='tabControlJobs']/tabpagelist/tabpage[@accessiblename='Training Job']", 60000);
Code: Select all
Ranorex.TabPage HDTabPage = HDClientForm.FindSingle(".//element[@controlname='tabControlJobs']/tabpagelist/tabpage[@accessiblename='Training Job']", 60000);
Ranorex.ElementNotFoundException: No element found for path './/element[@controlname='tabControlJobs']/tabpagelist/tabpage[@accessiblename='Training Job']' within 1m. at Ranorex.Core.Element.FindSingle(RxPath path, Duration timeout) at Ranorex.Adapter.FindSingle(RxPath path, Duration timeout) at Installation_Test.Program.HardDollarClientTests(String strDateTimeStampClean, String strNavigationMode) in C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\Installation Test\Installation Test\Program.cs:line 1688
This is the xPath or HDClientForm:
/form[@controlname='frmMainDialog']
.