dongpankao6133 2015-04-05 15:38
浏览 153

无法输入富文本编辑器

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!

  • 写回答

1条回答 默认 最新

报告相同问题?