Page 1 of 1

Validation failed. The element might no longer be available

Posted: Wed Nov 02, 2011 10:37 am
by swmatisa
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

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

Posted: Wed Nov 02, 2011 1:24 pm
by Support Team
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

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

Posted: Wed Nov 02, 2011 1:31 pm
by swmatisa
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

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

Posted: Wed Nov 02, 2011 2:00 pm
by Support Team
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

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

Posted: Wed Nov 02, 2011 2:06 pm
by swmatisa
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