I noticed that with the 4.1.0 release Ranorex is providing the ability to have a return value for the ExecuteScript function.
Previously ExecuteScript() just used to execute some function and that didn't return any value. But we wanted to do some manipulations based on the return value of our javascript function execution. Fortunately this new feature is exactly what we want to use as we want to leverage a method in our javascript to find the state of an applet before performing actions in it.The ExecuteScript method on WebDocuments now returns the value returned by the script
I would like to know the answers to the following:
1. Is it possible to use the webDocument class on a frame? Our application is part HTML and part applet based. And the javascript method I want to leverage is part of the html part of the console.
2. Please provide a sample code snippet with the new syntax with return value for the executeScript method.
Regards,
Viji