Selenium WebDriverWait checking for post request urls?
I’m doing some web scraping. I load the main page and need to save the OAuth token. The page loads and it does a POST request to get a JSON file and that post request will have the “authtoken” in its request header, which I need to save. The issue is the JSON might be loaded in 2 seconds or 8 seconds. So, is there a WebDriverWait
-until combo I can use to check when the JSON is loaded? EC.url_contains()
only checks the current main page, not the post request url, is there an EC
function that checks driver.request.headers
for keywords or checks the post request URLs?