From: <th...@cy...> - 2003-02-27 10:47:35
|
Hi everybody, I don't understand the approach on testing JS with HtmlUnit. Should it work transparently or do I have to execute JS-code explicit? For example I have select form element and a JS-function which will click the submit-button belonging to the form, when an option in mentioned select-element is choosed. How is HtmlUnit with JS enabled supposed to behave? Should I simply get a new page when changing the option in the select-element? (Ok, that already didn't work ;) Or do I have to call the JS-functions by myself using HtmlPage.executeJavaScriptIfPossible()? BTW: The documentation of that method confused me a little bit. It says in its signature, that it will return a ScriptResult, but it says in the description below, that it will return a Page. I couldn't try it out yet, but I'm curious what would gonna happen ;) kind regards Thomas Berlin |