title: <'WebDriver'>.switchTo().frame(<'frameId'>) not working with Chrome driver
body: <p>Need to access elements inside a modal iframe.</p>
  
  <p>Below code works perfectly fine for FireFox driver while fails for Chrome -</p>
  
  <pre><code>String frameId = null;
  List&lt;WebElement&gt; frameSet = driver.findElements(By.tagName("iframe"));  
  for (WebElement frameName : frameSet){  
      if(!(frameName.getAttribute("id").isEmpty()) &amp;&amp; (frameName.getAttribute("id").contains("DlgFrame"))){
              frameId = frameName.getAttribute("id");
          }
  }
  
  try {
      Thread.sleep(10000);
      } catch (InterruptedException e) {
          // TODO Auto-generated catch block
      e.printStackTrace();
      }
  
  Logger.info("Switch to Frame - "+frameId);
  driver.switchTo().frame(driver.findElement(By.id(frameId)));
  </code></pre>
  
  <p>Does Chrome driver support switchTo.frame(&lt;'frameId'>)?</p>
  
  <p>Error while using Chrome Driver - </p>
  
  <blockquote>
    <p>org.openqa.selenium.WebDriverException: Unknown command. Options: ActivateTab, CaptureEntirePage, CloseTab, DeleteCookie, ...</p>
    
    <p>Command duration or timeout: 220 milliseconds
    Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01'
    System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_05'
    Driver info: driver.version: RemoteWebDriver
    Session ID: cbde65cb0394ee0434b3bb528918ce40
        at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)
        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:498)
        at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:244)
        at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:87)
        at com.shn.services.Office365.sharePointUploadFile(Office365.java:173)
        at com.shn.test.RunOffice365Test.testSharePointUploadAndDeleteFile(RunOffice365Test.java:55)
        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74)
        at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)</p>
  </blockquote>