python-3.xselenium-webdriverpost

Is there any way of capturing HTTP request made by Selenium webdriver with Selenium?


I want to test if the webpage is making a HTTP POST request after fill and submit the form with Selenium webdriver. I can see it with Fiddler but is it possible to capture it from my main script?

P.S. There are some simular questions here, but they are 8 years old. Perhaps something has changed over the years.


Solution

  • you can check performance (network) logs via google chrome.

    SO link: https://stackoverflow.com/a/27644635/3574726
    documentation: https://developer.chrome.com/docs/chromedriver/logging/performance-log

    and parse logs to find if needed POST is present there