could not get a valid screen rectangle from element : General Questions

could not get a valid screen rectangle from element

Ask general questions here.

could not get a valid screen rectangle from element

Postby martinsw » Thu Feb 16, 2012 1:15 pm

Hello,

I am getting a warning message in my automation report saying

"Could not get a valid screen rectangle from element '{ATag}', since the element is no longer valid"

This warning does not happen every time I run my automation. Also, when it does occur, it doesn't always occur at the same point in the automation. However, every time the warning appears the automation then errors on the step after the warning (see attached screenshot).

Can you please explain what this error means and how I resolve it?

Thanks
Attachments
error.jpg
warning followed by error
error.jpg (213.17 KiB) Viewed 205 times
martinsw
 
Posts: 68
Joined: Fri Dec 09, 2011 3:48 pm

Re: could not get a valid screen rectangle from element

Postby Support Team » Thu Feb 16, 2012 3:01 pm

Hi,
martinsw wrote:Can you please explain what this error means and how I resolve it?

It seems to be that your element is no longer available in your document. Did you check after the error if the highlight element in your repository or if Spy is available to find the element? Is it possible to get access to the webpage and to your Ranorex Solution to analyze the issue?

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 6869
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: could not get a valid screen rectangle from element

Postby martinsw » Thu Apr 05, 2012 6:01 pm

Hi Peter,

When I go into my repository after this error I can successfully highlight it so i'm not sure what the problem is - it doesn't seem to be a problem with the Xpath given that I can successfully highlight it. Can you shed any light?

The annoying thing about this error is that it does not happen consistently. Therefore it may take several runs of the automation before you come accross it. I am currently in the process of arranging for Ranorex support to have access so will keep you posted about this.

In the meantime, any idea what the problem might be?

Thanks, Martin
martinsw
 
Posts: 68
Joined: Fri Dec 09, 2011 3:48 pm

Re: could not get a valid screen rectangle from element

Postby Support Team » Fri Apr 06, 2012 1:09 pm

Hi,

I'm sorry, but we do not have any further additional input for you.
Please try to make your AUT accessible for our support team and we will have a look at your issue on the live system.

Regards,
Tobias
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 6869
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests