''' Created on May 28, 2020 @author: vnc-console ''' # import requests from seleniumwire import webdriver # from seleniumwire.webdriver import ChromeOptions from selenium.webdriver import ChromeOptions # from selenium import webdriver from selenium.webdriver.common.keys import Keys from time import sleep # chrome_options = ChromeOptions() # chrome_options.add_argument('user-data-dir=C:/sel_wire_profile') driver = webdriver.Chrome() # driver.get('https://google.com') driver.get('https://decl.anaf.mfinante.gov.ro/WAS6DUS/') # sleep(0.5) # cert = driver.find_element_by_class_name('credentials_input_submit') # cert.click() # # sleep(3) # alert = driver.switch_to.alert # alert.accept() # driver.get('https://decl.anaf.mfinante.gov.ro/WAS6DUS/welcome.do') for request in driver.requests: if request.response: print( request.method, request.path, request.response.status_code, request.response.headers['Content-Type'] )