1

In Selenium 4 Java it is possible to write:

DevTools chromeDevTools = driver.getDevTools();

...

chromeDevTools.addListener(Network.requestWillBeSent(),
        req -> {
            System.out.println(String.format("Sent %s request to %s",
                    req.getRequest().getMethod(),
                    req.getRequest().getUrl()
            ));
        });

However, there is only execute_cdp_cmd() for Python. Is this feature not ready yet or I missed something?

user26742873
  • 919
  • 6
  • 21
  • 2
    It seems that way, at least I couldn't find anything in the documentation. This question is similar https://stackoverflow.com/questions/59420493/how-to-use-chrome-devtools-protocol-in-selenium-using-python-for-capturing-htt – Galunid Feb 23 '21 at 08:20

0 Answers0