[Webtest] input type=submit, but clickbutton doesn't find
Aatish Arora
webtest@lists.canoo.com
Mon, 15 Mar 2004 23:41:31 -0800 (PST)
Hi Lisa,
No im not a java programmer :)
- but what u just saw is another selling point you
could use for Canoo :)
Other commercial tools like Winrunner / Silktest would
simply refuse to recognize the object ...inwhich case
you would have to use some painful technique to get it
automated.
The parser errors (the invalid html that u saw) help
you to create a clean code - which is more gauranteed
to work on other platforms / browsers (other than
Windows/IE).
You will also notice that invalid Javascript code will
also get caught.
Unfortunately im testing a Swing UI - so cant use
Canoo there :( - anyone else knows of any other good
tools for a Swing UI?
Cheers!
Aatish
--- lisa.crispin@att.net wrote:
> Hi Aatish,
> I finally figured out what you mean, I think what
> you are saying is our invalid HTML is tripping it
> up? I can believe it because our HTML is full of
> errors when I run it thru a validator. We
> definitely have to clean it up.
>
> I'm sure you're right because I have an identical
> button on another page and it works fine.
>
> So I'll get a developer to clean this page up for me
> and I'll try it again!
>
> Thank you!
> -- Lisa
> > Hi Lisa,
> >
> > I don't know if this would work for you - but it
> has
> > worked for me - more than once :). So you can give
> it
> > a shot:
> >
> > try cleaning up the Parser errors that are
> generated
> > by Jtidy - some of these errors do cause an object
> to
> > be unrecognizable to Canoo.
> >
> >
> > Cheers!
> > Aatish
> >
> > --- lisa.crispin@att.net wrote:
> > > In posting
> > >
> >
>
http://lists.canoo.com/pipermail/webtest/2003q1/000511.html
> > > from 1 Feb., Aatish replied to a posting where
> > > someone has a form submit using an onclick
> > > javascript event to submit the form. He says if
> the
> > > button had been type="submit" it would work. I
> have
> > > that scenario and it is type="submit" (I know
> the
> > > type="button" doesn't work and I'm hoping
> someone
> > > will reply to my posting about applying that
> patch)
> > > but WebTest's clickbutton still says it can't
> find
> > > it. Here is the source code for the button:
> > >
> > > input name="apply" value="New Loan Application"
> > > type="submit" class="formButton"
> > > onclick="javascript: location.href =
> > > 'loanHome.jsp?func=loanRequest'"
> > >
> > > I tried to find both by name and label, but I
> get
> > > one of the following errors depending on which I
> > > try:
> > > Test step clickbutton named "start a new loan"
> > > failed with message "Button with
> > > name <apply> and value <<not specified>> not
> found!"
> > >
> > > Test step clickbutton named "start a new loan"
> > > failed with message "Button with
> > > name <<not specified>> and value <New Loan
> > > Application> not found!"
> > >
> > > I can try the workaround in that posting, but if
> it
> > > should work this way, I would like it to work!
> I
> > > have build 393.
> > > Thanks,
> > > Lisa
> > > _______________________________________________
> > > WebTest mailing list
> > > WebTest@lists.canoo.com
> > > http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - More reliable, more storage, less
> spam
> > http://mail.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
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com