title: Can't select an Iframe in selenium webdriver
body: <p>I am trying to select an <code>Iframe</code> by a class name but it's not working , I am trying with <code>tagName</code> it works but then when I tried to type within the element in the <code>Iframe</code> I couldn't, could you please help me here is my code:</p>
  
  <pre><code>webDriver driver.switchTo().frame( driver.findElement( By.className( "cke_wysiwyg_frame cke_reset" ) ) );
  driver.findElement( By.xpath( "//body[contains(text(),'type here')]" ) ).sendKeys( "Testing" );
  </code></pre>
  
  <p>And here is the HTML in my webpage:</p>
  
  <pre><code>&lt;div id="cke_534_contents" class="cke_contents cke_reset" role="presentation" style="height: 75px;"&gt;
     &lt;span id="cke_586" class="cke_voice_label"&gt;Press ALT 0 for help&lt;/span&gt;
     &lt;iframe class="cke_wysiwyg_frame cke_reset" frameborder="0" src="" style="width: 100%; height: 100%;" aria-describedby="cke_586" tabindex="0" allowtransparency="true"&gt;
        &lt;!DOCTYPE html&gt;
        &lt;html lang="en-gb" dir="ltr"&gt;
           &lt;head&gt;
           &lt;body class="cke_editable cke_editable_themed cke_contents_ltr cke_show_borders" contenteditable="true" spellcheck="true"&gt;
              type here
           &lt;/body&gt;
        &lt;/html&gt;
     &lt;/iframe&gt;
  &lt;/div&gt;
  </code></pre>