title: Play integration test with browser that supports WebSocket
body: <p>I am trying to do some simple integration tests with my WebSocket code using WithBrowser:</p>
  
  <pre><code>  class ApplicationControllerSpec extends Specification{
      "Application Controller" should {
        "do something" in new WithBrowser{
          browser.goTo("http://localhost:3333")
          browser.pageSource must contain("Hello")
        }
      }
    }
  </code></pre>
  
  <p>When I do this I get a very long error but part of it says:</p>
  
  <blockquote>
    <p>WebDriverException: com.gargoylesoftware.htmlunit.ScriptException:
    ReferenceError: "WebSocket" is not defined.</p>
  </blockquote>
  
  <p>Is there an alternative WebDriver that does have WebSocket implemented? Alternatively, is there a way to have it actually open up firefox or chrome?</p>
  
  <p>I would also appreciate any advice on how to test WebSocket code, but it looks like there is another unanswered question about that <a href="https://stackoverflow.com/questions/16354354/test-websocket-in-playframework">here</a>.</p>
  
  <p>I am using Play 2.1.3.</p>