WebDriver driver = new HtmlUnitDriver() {
protected WebClient modifyWebClient(final WebClient client) {
client.setUseInsecureSSL(true);
return client;
}
}
Cheers,
Marc.
--
HtmlUnit support & consulting from the source
Blog: http://mguillem.wordpress.com
Le 03/02/2011 23:02, Jeff a �crit :
> Any thoughts on this?
>
> On Wed, Jan 5, 2011 at 12:54 PM, Jeff <preda...@gmail.com
> <mailto:preda...@gmail.com>> wrote:
>
> Sorry for the bad wording in the subject. Hopefully it made sense.
> Want I want is to accept untrusted certificates...in particular for
> test systems where certificates are self-signed and/or are
> configured in such a way that would normally cause certificate
> warnings. I believe it can be done if setting up HtmlUnit
> stand-alone by subclassing or overriding something related to the
> SSL provider (it's been a while).
> Thanks again.
> On Wed, Jan 5, 2011 at 12:37 PM, Jeff <preda...@gmail.com
> <mailto:preda...@gmail.com>> wrote:
>
> If so, how?
> Thanks.
>
> --
> Jeff Vincent
> preda...@gmail.com <mailto:preda...@gmail.com>
> See my LinkedIn profile at:
> http://www.linkedin.com/in/rjeffreyvincent
>
>
>
>
> --
> Jeff Vincent
> preda...@gmail.com <mailto:preda...@gmail.com>
> See my LinkedIn profile at:
> http://www.linkedin.com/in/rjeffreyvincent
>
>
>
>
> --
> Jeff Vincent
> preda...@gmail.com <mailto:preda...@gmail.com>
This should do what you want:
WebDriver driver = new HtmlUnitDriver() {
protected WebClient modifyWebClient(final WebClient client) {
client.setUseInsecureSSL(true);
return client;
}
}
Cheers,
Marc.
--
HtmlUnit support & consulting from the source
Blog: http://mguillem.wordpress.com
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.