5

we are using selenium on python and as a part of our automation, we need to capture the messages that a sample website sends and receives after the web page loaded completely.

I have check here and it is stated that what we want to do is achievable using BrowserMobProxy but after testing that, the websocket connection did not work on website and certificate errors were also cumbersome.

In another post here it is stated that, this can be done using loggingPrefs of Chrome but it seemed that we only get the logs up to the time when website loads and not the data after that.

Is it possible to capture websocket traffic using only selenium?

wiki
  • 1,285
  • 1
  • 18
  • 31
  • I think [this article](https://medium.com/@lagenar/using-headless-chrome-via-the-websockets-interface-5f498fb67e0f) may just be what you're looking for. Hope it helps. – Nico V Dec 09 '19 at 11:37

0 Answers0