Am using Getpath() to get the Path of the object, but what happens is,
It is searching for the default time of 10 seconds and is failing to get the path,
But am sure that, increasing the time will help it to get the path, how to do that in code?
Regards,
Ranoman1
How to increase the search time in code for getting the path
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to increase the search time in code for getting the path
The Adapter.GetPath method does not use any timeout. It should always return you the RxPath for that element, no matter how long it takes to calculate the RanoreXPath.
Could you post the code you use?
Regards,
Alex
Ranorex Team
Could you post the code you use?
Regards,
Alex
Ranorex Team
Re: How to increase the search time in code for getting the path
Hi,
Am using the following code,
Ranorex.Row subrow= row.Children[ii].GetPath().ToString();
if(subrow.Cells[2].Text.ToLower()!="n/a" && ubrow.Cells[2].Text.ToLower()!="")
{
sourcablesubrowarraylist.Add(row.Children[ii].GetPath().ToString());
}
But am getting the following error at the end,
Ranorex.ElementNotFoundException: No element found for path '/form[@controlname='frmMDIMain']/element[@controltypename='MdiClient']/form/element/container[@controlname='tbpEstimatePage']/element[@controlname='grdLineItems']/table/row[@accessiblename='Band 0 row 1']/row[@accessiblename='Band 1 row 1']' within 10s.
Kindly clarify?
Regards,
Ranoman1
Am using the following code,
Ranorex.Row subrow= row.Children[ii].GetPath().ToString();
if(subrow.Cells[2].Text.ToLower()!="n/a" && ubrow.Cells[2].Text.ToLower()!="")
{
sourcablesubrowarraylist.Add(row.Children[ii].GetPath().ToString());
}
But am getting the following error at the end,
Ranorex.ElementNotFoundException: No element found for path '/form[@controlname='frmMDIMain']/element[@controltypename='MdiClient']/form/element/container[@controlname='tbpEstimatePage']/element[@controlname='grdLineItems']/table/row[@accessiblename='Band 0 row 1']/row[@accessiblename='Band 1 row 1']' within 10s.
Kindly clarify?
Regards,
Ranoman1
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to increase the search time in code for getting the path
Hi,
You get this error because Ranorex is not able to find the element. Please check if the RxPath you are using is correct and available during the actions.
Regards,
Peter
Ranorex Team
You get this error because Ranorex is not able to find the element. Please check if the RxPath you are using is correct and available during the actions.
Regards,
Peter
Ranorex Team