title: Selenium WebDriver: Error communicating with the remote browser. It may have died
body: <p>This is my Selenium browser test class (a derived one, but should not be hard to understand what it is doing). When I run the test case, all interactions occur as expected. But in the end the result of test case shows a failure.</p>
  
  <pre><code>package dmswebui.CR;
  
  import org.infineta.webui.selenium4j.MainTestCase;
  
  public class TestLogin extends MainTestCase {
  
    @Override
    public void setUp() throws Exception {
      super.setUp();
      startSeleniumSession("ChromeDriver", "http://192.168.8.207/");
    }
  
    public void testMethod() throws Exception {
  
          session().open("/");
          session().type("name=user","admin");
          session().type("name=password","infineta123");
          session().click("id=btnLogin-button");      session().waitForPageToLoad("30000");
          session().click("id=btnUserLogout-button");
          session().click("id=yui-gen0-button");      session().waitForPageToLoad("30000");
    }
    public void tearDown() throws Exception {
          super.tearDown();
          closeSeleniumSession();
    }
  }
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>Testcase: testMethod took 13.939 sec
  Caused an ERROR
  Error communicating with the remote browser. It may have died.
  </code></pre>