Selenium webdriverwait checking for post request urls? [python]
Doing some webscraping, I’m loading the main page and needing 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 a EC function that checks driver.request.headers for keywords or checks the post request URLs? thanks