Validation failed. The element might no longer be available

Ranorex Spy, Recorder, and Studio.
swmatisa
Posts: 122
Joined: Fri Aug 05, 2011 7:52 am

Validation failed. The element might no longer be available

Post by swmatisa » Wed Nov 02, 2011 10:37 am

WinXP SP3 (WindowsUpdate done)
Ranorex 3.1.0
*********************************
Hello,
Sometimes when I try to validate a "please wait temporary form" I receive the following error messageBox:
Validation failed. The element might no longer be available

What can I do to validate a form that appear one or two seconds (in normal case)?

Thanks for your help
SW

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Validation failed. The element might no longer be available

Post by Support Team » Wed Nov 02, 2011 1:24 pm

Hi,

to learn how to handle popping up forms please have a look at following blog post:
http://www.ranorex.com/blog/handling-di ... up-windows

Regards,
Tobias
Support Team
.
Image

swmatisa
Posts: 122
Joined: Fri Aug 05, 2011 7:52 am

Re: Validation failed. The element might no longer be available

Post by swmatisa » Wed Nov 02, 2011 1:31 pm

Hello Tobias,

I think my question is not clear enough:
The message "Validation failed. The element might no longer be available" is generated by Ranorex Studio, when I try to validate a form...

Best regards
SW

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Validation failed. The element might no longer be available

Post by Support Team » Wed Nov 02, 2011 2:00 pm

Hi,

that's because the mentioned form is not available when the validation is executed.
So, you have to, somehow, make sure, that the evaluation will be executed, when the form is still visible.
It also might be, that identifying the mentioned control may take a while, based on the RanoreXPath.
So please make sure that you choose a RanoreXPath as few generally as possible.


Kind regards,
Tobias
Support Team
.
Image

swmatisa
Posts: 122
Joined: Fri Aug 05, 2011 7:52 am

Re: Validation failed. The element might no longer be available

Post by swmatisa » Wed Nov 02, 2011 2:06 pm

Support Team wrote:that's because the mentioned form is not available when the validation is executed.
So, you have to, somehow, make sure, that the evaluation will be executed, when the form is still visible.
It also might be, that identifying the mentioned control may take a while, based on the RanoreXPath.
So please make sure that you choose a RanoreXPath as few generally as possible.
OK I understand, but it is not always possible, because I am in recording, not in running.

Best regards
SW