When opening a WebSocket connection via JavaScript, jBrowserDriver doesn't send any cookies with the upgrade request, effectively rendering any session state unusable. Also, these requests aren't output in the wire log.
Here is how the sent headers look like in a browser when creating a WebSocket connection (note the sent session cookie):
This is what jBrowserDriver sends:
I've also created a WAR for Tomcat 7 which contains the web-app I tested with:
WebSocketTest.zip
When opening a WebSocket connection via JavaScript, jBrowserDriver doesn't send any cookies with the upgrade request, effectively rendering any session state unusable. Also, these requests aren't output in the wire log.
Here is how the sent headers look like in a browser when creating a WebSocket connection (note the sent session cookie):![browser](https://user-images.githubusercontent.com/33051113/38681184-6dc28e42-3e68-11e8-8632-b57e84573d09.png)
This is what jBrowserDriver sends:![jbrowserdriver](https://user-images.githubusercontent.com/33051113/38681186-6ddd4372-3e68-11e8-9b7a-a4cd44629233.png)
I've also created a WAR for Tomcat 7 which contains the web-app I tested with: WebSocketTest.zip