title: Selenium RemoteWebDriver get alert text causes ClassCastException
body: <p>I have Selenium Grid running locally. I run a test that should check if an alert is shown. While running without Selenium Grid the test passes. But when I run the same test on a local Grid instance I receive a ClassCastException</p>
  
  <pre><code>java.lang.ClassCastException: com.google.common.collect.Maps$TransformedEntriesMap cannot be cast to java.lang.String
  </code></pre>
  
  <p>The exception is thrown on this method call</p>
  
  <pre><code> driver.switchTo().alert();
  </code></pre>
  
  <p>I see that RemoteWebDriver executes command <code>DriverCommand.GET_ALERT_TEXT</code>.
  So my question is how to check if an alert is present while running on Selenium Grid?</p>