How to ignore SSL certificate error with HTMLUnitDriver

177 views
Skip to first unread message

Gaurav Khandelwal

unread,
Feb 4, 2016, 4:29:39 PM2/4/16
to webdriver
Our application requires ignoring SSL error (On QA env) and so we are successfully doing it with Firefox, IE, and Chrome browser.

But we have a requirement to handle it with Headless browser, so we need to do it with HTMLUnit Driver. Though we are able to achieve it with Phantom JS with below code:

DesiredCapabilities caps = new DesiredCapabilities();
caps.setJavascriptEnabled(true);
caps.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS, new String[] {"--web-security=no", "--ignore-ssl-errors=yes"});


So please let me know how to ignore SSL certificate error with 'HTMLUnitDriver'.

Bill Ross

unread,
Feb 5, 2016, 3:37:11 AM2/5/16
to webd...@googlegroups.com
I have tried and given up on HTMLUnit twice in the last 6 years, tho not recently - it couldn't handle javascript.

Bill
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages