string dayPath = CalendarPath + "/table/row[@accessiblerole='Row']/cell[@accessiblename='" + day + "']";
if(monthButton.Substring(0,3) == month)
{
SelectDay(dayPath);
}
public static void SelectDay(string dayPath)
{
Ranorex.Cell cell = null;
if(Host.Local.TryFindSingle(dayPath,2500,out cell))
{
cell.Click();
}
else
{
Report.Failure("Something's wrong; couldn't find correct day on the calendar");
return;
}
}
as far as I know, these are unable to have a repository of their own (is that correct?)
TheReferencedDll.TheRepository repoDll = TheReferencedDll.TheRepository.Instance;
repoDll.YourRepoVariable= "View";
repoDll.FormCalculator.MenuItemView.Click();Is there any way to fix it?
If you just created the dll out of a normal Ranorex project which contains a repository
Can you send us the whole error message?
please try to use a larger timeout, e.g. 5000ms.
print out the dayPath in the error message within the else statement and evaluate this path with Ranorex Spy
What's going on?
Cell cell;
Host.Local.TryFindSingle("/form/element/container/table/row[@accessiblerole='Row' and @accessibledescription='Week 4']/cell[@accessiblename='15']", 30000, out cell);
cell.Click();Users browsing this forum: No registered users and 0 guests