Look:
http://htmlunit.sourceforge.net/faq.html#RedirectionDiagnosticMessages

++

Julien

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


On 28/11/2007, at 5:58 PM, Julien HENRY wrote:

> 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,
 ...

I am using JWebUnit to test the availability of a Sun product we run  
so I don't have any control over the HTML unfortunately.

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

This worked thanks.

I am seeing this ...

Nov 28, 2007 6:44:39 PM  
org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled

Am I able to tell it to follow redirects?

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