seleniumwire

selenium.common.exceptions.InsecureCertificateException: probably due to HSTS policy

selenium.common.exceptions.InsecureCertificateException: probably due to HSTS policy Question: I am trying to open microsoft outlook using selenium firefox, but I get this when the url opens Connection to outlook.live.com has a security policy called HTTP Strict Transport Security (HSTS), which means that Firefox can only connect to it securely. The error I get on terminal is …

Total answers: 2

Seleniumwire get Response text

Seleniumwire get Response text Question: I’m using Selenium-wire to try and read the request response text of some network traffic. The code I have isn’t fully reproducable as the account is behind a paywall. The bit of selenium-wire I’m currently using using is: for request in driver.requests: if request.method == ‘POST’ and request.headers[‘Content-Type’] == ‘application/json’: …

Total answers: 2