I'm trying to run tests in headless Chrome using Geb. Before enter the page, I have to select client certificate for authentication. How to do this in headless mode?
Robot class not working without UI.
Is there any way to handle certificate selection? I read about policies and AutoSelectCertificateForUrls
but I can't find way to load policy from file or set this particular parameter as option/argument (Chrome on Linux).
In PhantomJS there is option to provide certificate as argument but how to do this using Chrome driver?
AutoSelectCertificateForUrls
, which OS are you working on? Windows, Linux, MacOS? – Planogamete/etc/opt/chrome/policies
? Then you could addAutoSelectCertificateForUrls
to a JSON file in themanaged
subdirectory. Tell me if that helps and I will convert the comment into an answer. – Planogamete