From: <bd...@kn...> - 2005-06-28 20:54:21
|
For some strange reason, the end of my first email is missing (at least in the version that has been sent back to me from the list): Here is the missing text: >> With regard to 2) - I have seen in the API that there is an execute method of the JavaScriptEngine class, and I have successfully executed simple javascript. However, I do not appear to be able to access any of my javascript variables or javascript objects that exist on the page that is passed to this method. I know that the API says "users of HtmlUnit shouldn't need anything in this package," but I think it would be useful if we could access it as a way of unit-testing javascript. Assuming that, can someone explain to me how to have the methods of this class work with objects and variables on the relevant page? I'm particularly interested in the method I referred to above, but also to the callFunction and toString methods of the class. Regards, Bernard Devlin << |