S
S
Serge Nikitin2016-08-08 21:01:17
selenium
Serge Nikitin, 2016-08-08 21:01:17

There is a site with websocket. Is it possible through Selenium to read messages from this websocket?

There is nothing about websockets in the Selenium API. In theory, you can try to override socket.onmessage, but maybe there is some simpler and more ready-made solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-08-08
@Rou1997

Selenium etc. "engines" means work at the DOM level (HTML), and consider the network directly (HTTP or WebSockets) as "bad practice" if you are already using the "engine".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question