I am unable to pass through SSH Certificate is in Firefox. Every time I execute my code it gives a warning and then I have to manually accept and proceed. My code is working fine but not sure why it is still not able to bypass SSH.
Code which I am using :
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from getpass import getpass
username = input("Enter you Username:")
password = getpass("Enter you password:")
profile = webdriver.FirefoxProfile()
profile.accept_untrusted_certs = True
driver = webdriver.Firefox(firefox_profile=profile,executable_path=r'C:\\webdriver\\geckodriver.exe')
driver.get("https://directory.corp.intranet/cmsviewer/login.html?page=/cmsviewer/MAL/index.html%3Fkey%3DY8P-CRS")
cuid_user = driver.find_element_by_name("f_loginname")
cuid_user.send_keys(username)
password_cuid = driver.find_element_by_name("f_loginpassword")
password_cuid.send_keys(password)
enter_button = driver.find_element_by_name("frm_login")
enter_button.submit()
Every time I run the code on my new Firefox pop window I have to manually accept the Risk and continue.
enter image description here Every time after execution I have to accept and proceed. This I need to bypass. Any idea guys? Guys please help!!!!
Below image is screenshot of the same.