hi, when i run a simple login test for youtube.com like this:
...
<invoke url="http://www.youtube.com/login" description=""/>
<verifyText text="Sign in to YouTube!" />
<setInputField name="Email" value="[email protected]"/>
<setInputField name="Passwd" value="mypassword"/>
<clickButton label="Sign in"/>
...
i get the following error when i run the test:
...
ERROR (com.gargoylesoftware.htmlunit.JavaScriptBackgroundJob) - Caught
exception in Window.setTimeout().
======= EXCEPTION START ========
EcmaError: lineNumber=[0] column=[0] lineSource=[<no source>]
name=[TypeError] sourceName=[null] message=[TypeError: Cannot find function
inRange in object [object].]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find
function inRange in object [object].
at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:513)
...
BUILD FAILED
/home/nick/eclipseLocalWorkspace/webtest/build/webtest.xml:234: The
following error occurred while executing this line:
/home/nick/eclipseLocalWorkspace/webtest/build/youtube/tests/allTests.xml:5:
The following error occurred while executing this line:
/home/nick/eclipseLocalWorkspace/webtest/build/youtube/tests/youtubeWebTest.xml:9:
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot set
property "visibility" of undefined to "hidden" (
http://s.ytimg.com/yt/js/base_all_with_bidi-vfl89846.js#2280)
is htmlunit just not good enough? can anyone else log in using my script
text?
Nick