I'm trying to automate the web log in to one of the sites (via IE) at work that I visit frequently. I'm a newbie of the python and I'm stuck at this step, not sure how to write the code to simulate this move. Please help. I'm using python 3.7 on windows 10.
I have code like this:
from selenium import webdriver
driver=webdriver.Ie("C:\\Program Files\\Python37\\IEDriverServer.exe")
driver.get("https://<my target URL>")
Run the code, it brought up the page that shows "the site is not secure", then if I click the More information link , it will give me the option to continue to proceed to the target site at my own risk. (The site is company's intranet site, so there is no risk of accessing it) But how do I simulate the move of clicking "More information" link? I couldn't figure out what will be the information given on the line: driver.find_element('...').click(..)?
Attached the screenshot.
Aucun commentaire:
Enregistrer un commentaire