Select a Certificate – Selenium – Python

I’m writing a simple script to automatize the access in a platform with SSL Certificate, when i navigate in the url, the browser opens the popup for selecting the certificate, as shown in the photo.

enter image description here

Im using this portion of code to interact with the popup, but nothing happens.

alert_obj = driver.switch_to_alert().accept()

I can’t interact with the window, I would like to give it the OK input.

Any hint?

Source: Python-3x Questions

LEAVE A COMMENT