How to handle Select a certificate popup in chrome browser for selenium python using robot framework

9,811 views
Skip to first unread message

QA0813

unread,
Aug 23, 2018, 4:32:18 PM8/23/18
to robotframework-users

35566835-d6e761ee-05e8-11e8-8fd8-7b57f9859b3d.png

Launch the application which has security certificate associated. On launching we get "Select a Certificate popup" . How to avoid this and how to handle this selenium+python using Robot framework

Tried adding the certificate to trusted source dint work.. 

Please find the screenshot attached for the screen obtained.

Geist Eng

unread,
Aug 24, 2018, 12:58:40 AM8/24/18
to robotframework-users
A google search of 'select a certificate to authenticate yourself' provides a number of leads on how to handle this issue.

(after search select 'Tools' {upper right} and then in 'Any Time' drop down selected 'Past Year' to start off with recent threads on this issue.)

First two I found seemed informative:

https://stackoverflow.com/questions/27848786/chrome-certificate-selection-appears-multiple-times/27859775#27859775


Of late changes to the chromedriver seem often and also break too often.  I subscribe to the chrome-driver users group to keep abreast of releases and see how the community is doing with them.  I run my RF/Selenium in a python virtual env and tend to stay back a few releases from newest.  Once I find a stable release I only update after an actual release test cycle with all my tests (> 3000) before I bring a new chrome-driver into actual test env.

chromedriver-users

I say this to point out you might need to review what versions you are using and keep on top of them.  It might be that you have an older version or a too new one.  Hard to say without a bit of work.

I have a util script that adds to every test run console log what versions are in use.  Good to have for research and for posting when you want help with an obscure issue:

==============================================================================
Test rig details:
------------------------------------------------------------------------------
       
Tool |      Version       | Path
-------------+--------------------+-------------------------------------
 
Linux Dist | Ubuntu 16.04.4 LTS | NA
Linux Kernel | 4.4.0-130-generic  | NA
 
Git commit | f98a97c            | NA
 
Virtualenv | 15.0.1             | /usr/bin/virtualenv
     
Python | 2.7.12             | /opt/ci_builds/jenkins/rf_testing/bin/python
          RF
| 3.0.3              | /opt/ci_builds/jenkins/rf_testing/bin/pybot
 RF
Selenium | 3.1.1              | /opt/ci_builds/jenkins/rf_testing/lib/python2.7/site-packages
   
Selenium | 3.11.0             | /opt/ci_builds/jenkins/rf_testing/lib/python2.7/site-packages
   
Requests | 2.18.4             | /opt/ci_builds/jenkins/rf_testing/lib/python2.7/site-packages
   
Easysnmp | 0.2.5              | /opt/ci_builds/jenkins/rf_testing/lib/python2.7/site-packages
     
Poster | 0.8.1              | /opt/ci_builds/jenkins/rf_testing/lib/python2.7/site-packages
     
Chrome | 65.0.3325.181      | /usr/bin/google-chrome
chromedriver
| 2.37.544315        | /opt/ci_builds/jenkins/rf_testing/bin/chromedriver
     
Firefox | 61.0.1             | /usr/bin/firefox
 
Geckodriver |                    |
------------------------------------------------------------------------


Reply all
Reply to author
Forward
0 new messages