12 messages in com.canoo.lists.webtestRe: [Webtest] locating button within ...| From | Sent On | Attachments |
|---|---|---|
| andy johnson | 25 Apr 2005 12:39 | |
| Marc Guillemot | 26 Apr 2005 00:43 | |
| andy johnson | 26 Apr 2005 01:10 | |
| Marc Guillemot | 26 Apr 2005 01:21 | |
| andy johnson | 26 Apr 2005 05:28 | |
| andy johnson | 26 Apr 2005 14:41 | |
| Rajesh Menon | 26 Apr 2005 15:25 | |
| Marc Guillemot | 27 Apr 2005 02:07 | |
| andy johnson | 27 Apr 2005 06:35 | |
| paul...@visi.com | 27 Apr 2005 07:12 | |
| Rajesh Menon | 27 Apr 2005 12:59 | |
| Marc Guillemot | 12 May 2005 01:39 |
| Subject: | Re: [Webtest] locating button within form![]() |
|---|---|
| From: | paul...@visi.com (paul...@visi.com) |
| Date: | 04/27/2005 07:12:14 AM |
| List: | com.canoo.lists.webtest |
I prefer the new (non-nested) syntax you are suggesting. With one question. If you specify an index, as in <selectForm ...whatever.../> <clickButton stepid="Submit the simple form" name="doIt" index="1"/>
will this cause the 2nd button in the form that has been selected to be clicked, regardless of the button name, or will it also check the button name? I thought i'd seen some recent mailings regarding the inability to click an (image) button that didn't have a name. If name/label/htmlid all become irrelevant when `index` is used, then this may also solve that other problem? i.e. any combination of name, label, htmlid, or index is will be sufficient to find the button.
-- Paul
Quoting Marc Guillemot <mgui...@yahoo.fr>:
Before to reintroduce the index, I'd like to see if my simplification ideas are ok. Documentation still wrongly contains information about the old nested steps for clickButton: the <form> and <index> locators (http://webtest.canoo.com/manual/syntax.html#clickButton).
I think that the <form> locator is now useless because the selectForm step can be used instead. Furthermore I think that it would be cleaner to replace the <index> nested step of <clickButton> with an index attribute. First it would make test code shorter: <clickButton stepid="Submit the simple form" name="doIt" index="1"/> instead of <clickButton stepid="Submit the simple form" name="doIt"> <index value="1" /> </clickButton> and second it would make it consistent with setSelectField for instance that has already an index attribute.
What do you think?
Marc.
andy johnson wrote:
Hi Marc,
thanks...
I am trying to use release 1.6 - but i'm getting error.
I've downloaded ant1.6.2 and added ant bin directory to my path.
I can run the install test successfully... c:\canoo\doc\samples>ant -buildfile installTest.xml.
However, when i try to run a simple test (ie http://webtest.canoo.com/manual/samples.html - simpleTest.xml...)
i get the following error: c:\canoo\doc\samples>ant -buildfile mytest.xml Buildfile: mytest.xml
BUILD FAILED c:\canoo\doc\samples\mytest.xml:3: taskdef A class needed by class com.canoo. webtest.extension.ExportProperty cannot be found: com/meterware/httpunit/parsing /HTMLParserListener
any ideas??
thanks, Andy
From: Marc Guillemot <mgui...@yahoo.fr> Reply-To: webt...@lists.canoo.com To: webt...@lists.canoo.com Subject: Re: [Webtest] locating button within form Date: Tue, 26 Apr 2005 10:22:02 +0200
andy johnson wrote:
Hi Marc,
I would imagine a lot of people have encountered this issue-
not sure, it's not so common to have 2 submit buttons for the same form.
Is there no alternative?
none that doesn't require to improve current state of webtest.
If not, can you tell me what build number I should use in which the clickbutton nested index step is supported? - I will just use this build instead as i need this functionality...
release 1.6, the last base on httpunit. But using this release you wan't have all improvements that htmlunit brings concerning javascript. If you're a java programmer, I recommend you to add the index nested step again, it won't be so complicated.
Marc.
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest




