H
H
hide1002019-01-14 21:22:46
Parsing
hide100, 2019-01-14 21:22:46

How to get websocket from selenium?

There is a heavy site with a bunch of js, it communicates via websockets, but problems start when you try to work with tips as an authorized user, keys are generated every 10 minutes, and a request for a new one is also with a key, so as not to bother with authorization in sockets, climbed through selenium , but due to the fact that the site is heavy and very often updated, miss clicks often occur (either the element is lost or moved when you access it). Therefore, the question arose whether it is possible to immediately access the socket from the browser, get the coveted key and send the required request with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qlkvg, 2019-01-15
@qlkvg

In short, no. You can still listen to websocket data through a crazy crutch , but you can’t send it. selenium is a bit off topic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question