[Webtest] clickbutton not working
Maud JAMATI
webtest@lists.canoo.com
Fri, 22 Jul 2005 10:38:24 +0100 (BST)
I have found an interesting behaviour...
here is the sequence of my test:
- step 1 : set password using setinputfield
- step 2 : confirm password using setinputfield
- step 3 : click button Initialize
So if I run this sequence above my test fails
if I run step 1 then step 3 the test pass
if I run step 1 then step 2 the test pass
so there seems to be some strange behaviour of the
setinputfield object , like it's changing the default
form or something other ???
Are there any known issues for setinputfield?
Cheers,
maud
--- Maud JAMATI <mauud@yahoo.com> wrote:
> yes it's inside a form, the only one in the page.
>
> <form name="Form" method="post"
> action="../dccModule/InstallationRequired">
>
> but I tested other objects inside that form without
> error( like clicklink, setinputfield) and without
> using selectForm
>
>
>
>
>
> --- Marc Guillemot <mguillemot@yahoo.fr> wrote:
>
> > Try to reduce your page to the minimal amount of
> > code producing the wrong behavior. Your html code
> > snippet looks ok. One
> > (stupid) question: is your input in a form?
> >
> > Marc.
> >
> > Maud JAMATI wrote:
> > > Thanks Marc
> > > sorry to send so many mails :o)
> > >
> > > some more info on the html code that I would
> like
> > to
> > > test, there are two lines before and one line
> > after
> > > the submit button code
> > > maybe this might cause the trouble?
> > >
> > > <script type="text/javascript"
> > > src="/com_web_ui/js/browserVersion.js"></script>
> > >
> > > <script type="text/javascript"
> > > src="/com_web_ui/js/dynamic.js"></script>
> > >
> > > <input name="InstallationRequired.Button"
> > > type="submit" class="Btn1" value="Initialize"
> > > title="Initialize DCC with the specified
> password"
> > > onclick="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)" />
> > >
> > > <input type="hidden"
> > >
> >
>
name="InstallationRequired.Button.DisabledHiddenField"
> > > value="false" />
> > >
> > > Cheers,
> > > maud
> > >
> > >
> > > --- Marc Guillemot <mguillemot@yahoo.fr> wrote:
> > >
> > >
> > >>No idea as this issue doesn't tell much about
> what
> > >>is not working.
> > >>
> > >>Marc.
> > >>
> > >>Maud JAMATI wrote:
> > >>
> > >>>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
> > >>>>>>
> > >>>>>>
> > >>>>>>
>
=== message truncated ===
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com