Quantcast

javascript focus method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

javascript focus method

Joshua-10
Greetings,

I am running a clickLink step that fails.  This seems
to be a result of the javascript focus method.  The
error that I receive is as follows:

 [testSpec]  INFO (com.canoo.webtest.steps.Step) -
Start Step: verifyText "Check to see Owner Login in
the breadcrumb (Owner Login)" (7/13)
[testSpec]  INFO (com.canoo.webtest.steps.Step) -
Start Step: clickLink "Select the Forgot your Password
hyperlink" (8/13)
[testSpec] ERROR
(com.canoo.webtest.steps.request.Target) -
ScriptException: enclosed exception was "TypeError:
Cannot call method "focus" of undefined (event for
HtmlBody[<body onload="document.frm.email.focus( )"
topmargin="0" leftmargin="0">]#1)"
[testSpec]  INFO (com.canoo.webtest.steps.Step) -
Exception thrown from this class:
com.canoo.webtest.engine.StepFailedException
[testSpec]  INFO (com.canoo.webtest.steps.Step) -
Message was: Step[clickLink "Select the Forgot your
Password hyperlink" (8/13)]: Script error executing
at: link href=forgot.php

BUILD FAILED
/Users/joshuastinson/Sites/quickthunder/pvh/head/test/webtest/oldsite/owner/login/successful-login-testcases.xml:15:
The following error occurred while executing this
line:
Test step clickLink
(/Users/joshuastinson/Sites/quickthunder/pvh/head/test/webtest/oldsite/owner/login/uc-retrievepassword-successful.xml:7:
)  named "Select the Forgot your Password hyperlink"
failed with message "Step[clickLink "Select the Forgot
your Password hyperlink" (8/13)]: Script error
executing at: link href=forgot.php"

Anyone else experienced problems with javascript focus
methods?  Anyone have a fix for this?

Thanks,

Joshua


               
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: javascript focus method

Marc Guillemot
Joshua,

on the webtest mailing list or on the htmlunit-dev mailing list the
problem stays the same: I (we) need a - really simple - example of the
html code on which htmlunit fails.

Marc.

Joshua wrote:

> Greetings,
>
> I am running a clickLink step that fails.  This seems
> to be a result of the javascript focus method.  The
> error that I receive is as follows:
>
>  [testSpec]  INFO (com.canoo.webtest.steps.Step) -
> Start Step: verifyText "Check to see Owner Login in
> the breadcrumb (Owner Login)" (7/13)
> [testSpec]  INFO (com.canoo.webtest.steps.Step) -
> Start Step: clickLink "Select the Forgot your Password
> hyperlink" (8/13)
> [testSpec] ERROR
> (com.canoo.webtest.steps.request.Target) -
> ScriptException: enclosed exception was "TypeError:
> Cannot call method "focus" of undefined (event for
> HtmlBody[<body onload="document.frm.email.focus( )"
> topmargin="0" leftmargin="0">]#1)"
> [testSpec]  INFO (com.canoo.webtest.steps.Step) -
> Exception thrown from this class:
> com.canoo.webtest.engine.StepFailedException
> [testSpec]  INFO (com.canoo.webtest.steps.Step) -
> Message was: Step[clickLink "Select the Forgot your
> Password hyperlink" (8/13)]: Script error executing
> at: link href=forgot.php
>
> BUILD FAILED
> /Users/joshuastinson/Sites/quickthunder/pvh/head/test/webtest/oldsite/owner/login/successful-login-testcases.xml:15:
> The following error occurred while executing this
> line:
> Test step clickLink
> (/Users/joshuastinson/Sites/quickthunder/pvh/head/test/webtest/oldsite/owner/login/uc-retrievepassword-successful.xml:7:
> )  named "Select the Forgot your Password hyperlink"
> failed with message "Step[clickLink "Select the Forgot
> your Password hyperlink" (8/13)]: Script error
> executing at: link href=forgot.php"
>
> Anyone else experienced problems with javascript focus
> methods?  Anyone have a fix for this?
>
> Thanks,
>
> Joshua
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> HtmlUnit-develop mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
>



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: javascript focus method

Joshua-10
Greetings,

I am trying to access the Forgot your Password?
hyperlink as seen in the html explained below.  I have
tried using both the label and the href steps for
clickLink and the url step for invoke.  

The html code that I am trying to access via Canoo is
as follows:
---------------
<a href='forgot.php'>Forgot your Password?</a>
---------------

The html code that I belive is bombing the script is
as follows:
---------------
onload="javascript:gofocus()"
---------------

If you need any other information, I will gladly pass
it along.  

Thank you for your quick responses.

Joshua

--- Marc Guillemot <[hidden email]> wrote:

> Joshua,
>
> on the webtest mailing list or on the htmlunit-dev
> mailing list the
> problem stays the same: I (we) need a - really
> simple - example of the
> html code on which htmlunit fails.
>
> Marc.
>
> Joshua wrote:
> > Greetings,
> >
> > I am running a clickLink step that fails.  This
> seems
> > to be a result of the javascript focus method.
> The
> > error that I receive is as follows:
> >
> >  [testSpec]  INFO (com.canoo.webtest.steps.Step) -
> > Start Step: verifyText "Check to see Owner Login
> in
> > the breadcrumb (Owner Login)" (7/13)
> > [testSpec]  INFO (com.canoo.webtest.steps.Step) -
> > Start Step: clickLink "Select the Forgot your
> Password
> > hyperlink" (8/13)
> > [testSpec] ERROR
> > (com.canoo.webtest.steps.request.Target) -
> > ScriptException: enclosed exception was
> "TypeError:
> > Cannot call method "focus" of undefined (event for
> > HtmlBody[<body onload="document.frm.email.focus(
> )"
> > topmargin="0" leftmargin="0">]#1)"
> > [testSpec]  INFO (com.canoo.webtest.steps.Step) -
> > Exception thrown from this class:
> > com.canoo.webtest.engine.StepFailedException
> > [testSpec]  INFO (com.canoo.webtest.steps.Step) -
> > Message was: Step[clickLink "Select the Forgot
> your
> > Password hyperlink" (8/13)]: Script error
> executing
> > at: link href=forgot.php
> >
> > BUILD FAILED
> >
>
/Users/joshuastinson/Sites/quickthunder/pvh/head/test/webtest/oldsite/owner/login/successful-login-testcases.xml:15:
> > The following error occurred while executing this
> > line:
> > Test step clickLink
> >
>
(/Users/joshuastinson/Sites/quickthunder/pvh/head/test/webtest/oldsite/owner/login/uc-retrievepassword-successful.xml:7:

> > )  named "Select the Forgot your Password
> hyperlink"
> > failed with message "Step[clickLink "Select the
> Forgot
> > your Password hyperlink" (8/13)]: Script error
> > executing at: link href=forgot.php"
> >
> > Anyone else experienced problems with javascript
> focus
> > methods?  Anyone have a fix for this?
> >
> > Thanks,
> >
> > Joshua
> >
> >
> >
> > __________________________________
> > Yahoo! Music Unlimited
> > Access over 1 million songs. Try it free.
> > http://music.yahoo.com/unlimited/
> >
> >
> >
>
-------------------------------------------------------

> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content,
> downloads, discussions,
> > and more.
> http://solutions.newsforge.com/ibmarch.tmpl
> > _______________________________________________
> > HtmlUnit-develop mailing list
> > [hidden email]
> >
>
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
> >
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content,
> downloads, discussions,
> and more.
> http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> HtmlUnit-develop mailing list
> [hidden email]
>
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
>



               
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...