ExecuteScript doesn't return a value

Class library usage, coding and language questions.
mikieh
Posts: 1
Joined: Sun Oct 14, 2012 4:35 pm

ExecuteScript doesn't return a value

Post by mikieh » Sun Oct 14, 2012 5:27 pm

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

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

Re: ExecuteScript doesn't return a value

Post by Support Team » Mon Oct 15, 2012 12:45 pm

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
.
Image