Hi,

I'm not sure it is possible with basic methods because it is expected that a 
form control... is in a form. My advice is: try to have valid (X)HTML, it will 
works better with all browsers, tools, ...

Concerning JWebUnit, I think you can use a XPath expression to deal with 
buttons: 
assertElementPresentByXPath("//[EMAIL PROTECTED]'myBtnId']");
clickElementByXPath("//[EMAIL PROTECTED]'myBtnId']");

Concerning textfields, api is lacking of something like:
setTextFieldByXPath("//[EMAIL PROTECTED]'text' and @id='myTBId']", "Some text");

Feel free to open a feature request or better to contribute a patch plus unit 
tests.

Regards,

Julien

----- Message d'origine ----
De : Luke Daley <[EMAIL PROTECTED]>
À : jwebunit-users@lists.sourceforge.net
Envoyé le : Mercredi, 28 Novembre 2007, 3h29mn 35s
Objet : [JWebUnit-users] Dealing with form controls that aren't in forms.

Hi,

I am very new to jwebunit and am evaluating it alongside canoo webtest.

The application I am trying to work uses textfields and buttons that  
aren't actually in forms and I can't seem to work with these with  
JWebUnit. Is there any way to? I am using 1.4.1

Thanks,

LD.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users





      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to