I want Selenium to type a text in a Rich Text iframe, but I can't get it to work. This is the iframe: <iframe src="" frameborder="0" class="cke_wysiwyg_frame cke_reset" style="width: 1635px; height: 100%;" title="Rich Text Editor, question" aria-describedby="cke_94" tabindex="0" allowtransparency="true"></iframe>
My steps are:
$this->selectFrame("xpath=//*[contains (@class, 'cke_wysiwyg_frame')]");
$this->type("xpath=//*[contains (@class, 'cke_wysiwyg_frame')]", $this->contextQuestion);
It says that, for some reason, it doesn't find the element, maybe it doesn't load the JS ?. Any help would be appreciated!