In the case below, I'm just trying to move the mouse to the title bar.
Code: Select all
Process.Start("C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE");
Ranorex.TitleBar ttbExcel = LightningUIItems.ttbExcel;
ttbExcel.MoveTo();
Code: Select all
public static Ranorex.TitleBar ttbExcel
{
get
{
Adapter.DefaultSearchTimeout = 5000;
Ranorex.TitleBar ttbExcel = "/form[@processname='EXCEL']/element[@class='EXCEL2' and @instance='0']/container/element/element/container/titlebar[@accessiblename='']";
return ttbExcel;
}
}
Is any one able to please help with this problem? Why would this work in a recording, but not the way I do it?