[Webtest] How to verify existence of a submit button?

John Sisk webtest@lists.canoo.com
Mon, 2 Sep 2002 10:09:09 -0700


Thank you :)
With your help I can see where I was going wrong

Regards
John

----- Original Message -----
From: "Dierk Koenig" <dierk.koenig@canoo.com>
To: <webtest@lists.canoo.com>
Sent: Monday, September 02, 2002 1:53 AM
Subject: RE: [Webtest] How to verify existence of a submit button?


> Hi John,
>
> the type of element you are looking for is not "submit" but "input".
> cf. http://webtest.canoo.com/webtest/manual/syntax.html#10
>
> your step would be
>
>  <verifyelement
>                      stepid="Checks for the existence of a SUBMIT button"
>                      type="input"
>                      text="test"
>  />
>
> BTW: this step is not necessary if you use <clickbutton> rigth after
> it. <clickbutton> checks for the existence of the corresponding button.
>
> cheers
> Mittie
>
>
>
>
> > -----Original Message-----
> > From: webtest-admin@lists.canoo.com
> > [mailto:webtest-admin@lists.canoo.com]On Behalf Of John Sisk
> > Sent: Samstag, 31. August 2002 19:04
> > To: WebTest@lists.canoo.com
> > Subject: [Webtest] How to verify existence of a submit button?
> >
> >
> > Hi there,
> >
> > I'm trying to verify the existence of a submit button on a page and I'm
> > getting the following failure...
> > Failure: Test "myTest" failed at step "Checks for the existence
> > of a SUBMIT
> > button" with message "No element of type "submit" found!
> >
> > <clickbutton> works though.
> >
> > I'm using this in my buildfile:
> >
> > <verifyelement
> >                     stepid="Checks for the existence of a SUBMIT button"
> >                     type="submit"
> >                     text="test"
> > />
> >
> > and this in my page:
> > <input type="submit" name="test" value="test">
> >
> >
> >
> >
> >
> > _______________________________________________
> > 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
>
>