[Webtest] clickbutton not working
Maud JAMATI
webtest@lists.canoo.com
Wed, 20 Jul 2005 10:12:46 +0100 (BST)
Thank you Marc
I still get the same error in the logs, "No button
found"....
I just saw this notification (see below) in one of the
webtest mail today, could my issue be related to this?
Cheers,
maud
---------------
ClickButton.java v1.57 and v1.58 don't work properly
----------------------------------------------------
Key: WT-66
URL:
http://webtest-community.canoo.com/jira/browse/WT-66
Project: WebTest
Type: Bug
Versions: 1.7-SNAPSHOT
Environment: Windows 2000 Professional
Reporter: Alvin Leung
File
CanooWebtest:/webtest/src/com/canoo/webtest/steps/request/ClickButton.java
v1.57 and v1.58 don't work on my system, but v1.56
does when webtest is
recompiled
--- Marc Guillemot <mguillemot@yahoo.fr> wrote:
> For instance
>
> <clickButton
> stepid="Click the Initialize button"
> name="Login.Submit"/>
>
> Marc.
>
> Maud JAMATI wrote:
> > Hi Marc,
> >
> > Thank you for your feedback.
> >
> > Would you have any suggestion looking at the html
> code
> > of what webtest syntax I could use to automate
> that
> > button?
> >
> > Cheers,
> > maud
> >
> >
> > ---Marc Guillemot <mguillemot@yahoo.fr> wrote:
> >
> >
> >>Hi,
> >>
> >>you don't have any button with id "javascript:
> >>return installClicked()" (it would be quite a
> >>strange id, perhaps
> >>invalid) therefore can't webtest find it.
> >>
> >>Marc.
> >>
> >>Maud JAMATI wrote:
> >>
> >>>a bit more info, in fact the button is not found
> >>
> >>on
> >>
> >>>that page:
> >>>
> >>>with the following code
> >>><clickButton
> >>> stepid="Click the Initialize button"
> >>> label="Initialize"
> >>> htmlId="javascript: return installClicked()"/>
> >>>
> >>>
> >>>I get the following error in the log
> >>> [testSpec] INFO (com.canoo.webtest.steps.Step)
> -
> >>>Start Step: clickButton "Click the Initialize
> >>
> >>button"
> >>
> >>>(11/15)
> >>> [testSpec] INFO
> >>>(com.canoo.webtest.steps.request.ClickButton) -
> No
> >>>html element found with id: javascript: return
> >>>installClicked()
> >>> [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: No button found
> >>>
> >>>
> >>>
> >>>
> >>>--- Maud JAMATI <mauud@yahoo.com> wrote:
> >>>
> >>>
> >>>
> >>>>Hello,
> >>>>
> >>>>I have an issue with clickbutton step, and I
> would
> >>>>like to ask some advice from all webtest
> experts.
> >>>>I am using canoo 1.7.
> >>>>
> >>>>The clickbutton step doesn't recognise the
> button
> >>
> >>in
> >>
> >>>>the following html code:
> >>>>
> >>>><input name="InstallationRequired.Button"
> >>>>type="submit" class="Btn1" value="Initialize"
> >>>>title="Initialize DCC with the
> >>>>specified password" onclick="javascript: return
> >>>>installClicked()" onmouseover="javascript: if
> >>>>(this.disabled==0)
> >>>>this.className='Btn1Hov'"
> onmouseout="javascript:
> >>
> >>if
> >>
> >>>>(this.disabled==0) this.className='Btn1'"
> >>>>onblur="javascript: if
> >>>>(this.disabled==0) this.className='Btn1'"
> >>>>onfocus="javascript: if (this.disabled==0)
> >>>>this.className='Btn1Hov';javascript: if
> (ccFocus)
> >>>>ccFocus.set(this)" />
> >>>>
> >>>>
> >>>>I have used the following code
> >>>>
> >>>><clickButton
> >>>> stepid="Click the Initialize button"
> >>>> label="Initialize" />
> >>>>
> >>>>There are no output in the log, and the test is
> >>
> >>very
> >>
> >>>>slow, so I don't know what is causing this
> >>
> >>problem.
> >>
> >>>>Is
> >>>>there something that I am missing?
> >>>>
> >>>>Thanks for your help
> >>>>maud
> >>>>
> >>>>PS: I have used the step clickbutton with no
> error
> >>>>for
> >>>>the following html code:
> >>>>
> >>>><input name="Login.Submit" type="submit"
> >>>>class="Btn1Def" value="Log In" title="Log in to
> >>>>Application"
> >>>> tabindex="3" onclick="return buttonClicked();"
> >>>>onmouseover="javascript: if (this.disabled==0)
> >>>>this.className='Btn1DefHov'"
> >>
> >>onmouseout="javascript:
> >>
> >>>>if (this.disabled==0) this.className='Btn1Def'"
> >>>>onblur="javascript:
> >>>>if (this.disabled==0) this.className='Btn1Def'"
> >>>>onfocus="javascript: if (this.disabled==0)
> >>>>this.className='Btn1DefHov'"
> >>>>/></div></td>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >
>
___________________________________________________________
> >
> >>>>How much free photo storage do you get? Store
> your
> >>>>holiday
> >>>>snaps for FREE with Yahoo! Photos
> >>>>http://uk.photos.yahoo.com
> >>>>_______________________________________________
> >>>>WebTest mailing list
> >>>>WebTest@lists.canoo.com
> >>>>http://lists.canoo.com/mailman/listinfo/webtest
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >
>
___________________________________________________________
> >
> >>>How much free photo storage do you get? Store
> your
> >>
> >>holiday
> >>
> >>>snaps for FREE with Yahoo! Photos
> >>
> >>http://uk.photos.yahoo.com
> >>
> >>>_______________________________________________
> >>>WebTest mailing list
> >>>WebTest@lists.canoo.com
> >>>http://lists.canoo.com/mailman/listinfo/webtest
> >>>
> >>
> >>_______________________________________________
> >>WebTest mailing list
> >>WebTest@lists.canoo.com
> >>http://lists.canoo.com/mailman/listinfo/webtest
>
=== message truncated ===
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com