Python Selenium - How to configure a client certificate file while initializing PhantomJS driver instance I need to use a certificate .cer to connect to a website. I use PhantomJS with Python. This is the connection code: driver webdriver.PhantomJSexecutable_pathSeleniumbinphantomjs, service_args--ssl-client-certificate-filecertificate.cer, desired_capabilitiesdcap However, the HTML returned is: htmlheadheadbodybodyhtml and the URL is: about:blank But if I remove: --ssl-client-certificate-filecertificate.cer Then I get the correct URL and some HTML content forbidden message because the certificate is missing. Any idea what I can do to solve this issue UPDATE 1 Ghostdriver.log contains the following: INFO - 2018-04-27T15:18:44.680Z GhostDriver - Main - running on port 55768 INFO - 2018-04-27T15:18:44.960Z Session 46addab0-4a2e-11e8-879b-bb8782c84ba6 - page.settings - XSSAuditingEnabled:false,javascriptCanCloseWindows:true,javascriptCanOpenWindows:true,javascriptEnable...
Комментарии
Отправить комментарий