I noticed assertFormElementPresentWithLabel, so I'm going to try that.
Unfortunately, it's not going well, but I'll leave that for another
thread...
Todd
On Jan 5, 2005, at 10:00 AM, Nick Neuberger wrote:
Here is a thought?
In some cases, or some applications, the ID is the same as the Name.
What would everyone think about about a switch inside jwebunit that
uses the
id attrib instead of the name attrib?
Like you could set method such as.
WebTester.switchNameToIdAttribute(true);
Inside jWebUnit the framework, when it should compare a "name" attrib,
it
will check the "id" attrib instead.
This seems like the best approach since many assertions in jwebunit
use the
"name".
Would this help out in STRUTS based applications as well.
Thoughts????
HTH...
Nick Neuberger
-----Original Message-----
From: Todd O'Bryan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 04, 2005 8:47 PM
To: Olaf Kock
Cc: [email protected]
Subject: Re: [Jwebunit-users] Not seeing form element
Uh-oh. Tapestry assigns those names. I can only control the id.
Any workarounds for a check by id?
Todd
On Jan 4, 2005, at 6:49 AM, Olaf Kock wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Todd O'Bryan wrote:
| As you can see, there really is a form element with
id="username",
even
| if the framework can't see it. Any ideas what's going on?
Hi,
the framework complains that it can't find an element with /name/
"username", not with /id/ "username". ;-)
assertFormElementPresent("$TextField") should work better (if '$' is
processed as is).
Cheers,
Olaf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
iD8DBQFB2oK7rOvgD3EqpS4RAsk4AKCjz/Dgo+LrOu7kUGcsdhk3MOB8NQCfRglW
lXMuC4CoKNwrYVl8NctOWV4=
=XV6O
-----END PGP SIGNATURE-----
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well,
almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
- - - - - -
This e-mail message is intended only for the use of the individual or
entity
identified in the alias address of this message and may contain
confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender
immediately
by reply e-mail and delete this message from your system. Thank you.
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users