Can I tell HtmlUnitDriver to ignore untrusted certificates?

瀏覽次數:1,237 次
跳到第一則未讀訊息

Jeff

未讀,
2011年1月5日 下午2:37:192011/1/5
收件者:webd...@googlegroups.com
If so, how?
 
Thanks.

--
Jeff Vincent
preda...@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent

Jeff

未讀,
2011年1月5日 下午2:54:152011/1/5
收件者:webd...@googlegroups.com
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.

Jeff

未讀,
2011年2月3日 下午5:02:512011/2/3
收件者:webd...@googlegroups.com
Any thoughts on this?

Marc Guillemot

未讀,
2011年2月4日 上午11:06:342011/2/4
收件者:webd...@googlegroups.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


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>

Jeff

未讀,
2011年2月4日 下午3:59:032011/2/4
收件者:webd...@googlegroups.com
Fantastic!  Thank you!!
 
I need to stop assuming that all Drivers are the same...ack!
On Fri, Feb 4, 2011 at 9:06 AM, Marc Guillemot <mguil...@yahoo.fr> wrote:
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.




--
Jeff Vincent
回覆所有人
回覆作者
轉寄
0 則新訊息