Could not get a valid element rectangle
Posted: Sat Nov 05, 2016 1:49 am
Hi Folks,
This code has been working fine for about a year. However it really acts up recently:
TrTag row=FindMatchRow(serialNumber); //the row can be found without a problem
SelectADevice(row); //however, the row seems getting invalid gradually:
public bool SelectADevice(TrTag row)
{
if ( row != null) //ok
{
if(!row.Element.GetAttributeValueText("class").Contains("selected")) //ok
{
row.MoveTo(300); //ok
row.Click(); //get a warning message 1) specified below
//wait for a while ...
return true;
}
}
return false;
}
1) Warn Automation:Could not get a valid element rectangle from '{TrTag:}', since the element is no longer valid.
Later on, use this row to find its child will give this error:
No element found for path 'td[4]/div/span[2]' within 30s.
similar issue:
2) Could not get a valid element rectangle from '{SpanTag:}', since the element is no longer valid.
Action 'performclick' failed on element '{SpanTag:}'.
Later on use this spantag to find its child will have this error:
Error in MsgHostDom call: Error TypeError: node is undefined @resource://rxautong-at-ranorex-dot-com/data/../page.js:585:13 @resource://rxautong-at-ranorex-dot-com/data/../page.js:109:17
can someone shed a light?
This code has been working fine for about a year. However it really acts up recently:
TrTag row=FindMatchRow(serialNumber); //the row can be found without a problem
SelectADevice(row); //however, the row seems getting invalid gradually:
public bool SelectADevice(TrTag row)
{
if ( row != null) //ok
{
if(!row.Element.GetAttributeValueText("class").Contains("selected")) //ok
{
row.MoveTo(300); //ok
row.Click(); //get a warning message 1) specified below
//wait for a while ...
return true;
}
}
return false;
}
1) Warn Automation:Could not get a valid element rectangle from '{TrTag:}', since the element is no longer valid.
Later on, use this row to find its child will give this error:
No element found for path 'td[4]/div/span[2]' within 30s.
similar issue:
2) Could not get a valid element rectangle from '{SpanTag:}', since the element is no longer valid.
Action 'performclick' failed on element '{SpanTag:}'.
Later on use this spantag to find its child will have this error:
Error in MsgHostDom call: Error TypeError: node is undefined @resource://rxautong-at-ranorex-dot-com/data/../page.js:585:13 @resource://rxautong-at-ranorex-dot-com/data/../page.js:109:17
can someone shed a light?