How to force Safari Driver to automatically select client SSL certificate?

Hi,

I'm using safaridriver in combination with Selenium Server 3 on macOS Mojave 10.14.6 to run selenium automated tests.
Everything works fine for regular websites.
The problem arises when trying to test a page that requires a client SSL certificate.

I've imported the cert into my personal certificates in Keychan Access and created a profile for the base URL of that page.
When I launch Safari manually and navigate to the test URL, the certificate is silently selected and the page opens fine.

On the other hand, when I launch my test via selenium script (safaridriver), the "The website XXX requires a client certificate" confirmation dialog still pops up and the test can't progress.

Is there a way to permanently configure safaridriver to auto accept that dialog or any option/capability that the selenium script should pass to safaridriver?

Thanks,
  • Diego

Answered by hurrikam in 681144022

Hi,

would it be possible to get a reply from the Safari/Safari Driver developers?

The apparently limited capabilities of Safari Driver are preventing us with fully automating our test cases.

Thanks,

-Diego

PS: please ignore the accepted answer icon

Accepted Answer

Hi,

would it be possible to get a reply from the Safari/Safari Driver developers?

The apparently limited capabilities of Safari Driver are preventing us with fully automating our test cases.

Thanks,

-Diego

PS: please ignore the accepted answer icon

How to force Safari Driver to automatically select client SSL certificate?
 
 
Q