Page 1 of 1

ExecuteScript doesn't return a value

Posted: Sun Oct 14, 2012 5:27 pm
by mikieh
Hi,

I would like that WebDocument will have a methiod like "Eval" that will return the value of the java script exection. I saw that ExecuteScript doesn't return that value.
Is there any possible way to get that return value?

Thank you,
Miki

Re: ExecuteScript doesn't return a value

Posted: Mon Oct 15, 2012 12:45 pm
by Support Team
Hello,

Sorry, but the method ExecuteScript() is a void method, so there is no return value. As workaround you can save the return value on your site and check it with Ranorex after the execution of the script.

Regards,
Bernhard
Ranorex Support Team