我想让Selenium在Rich Text iframe中键入文字,但我无法使其发挥作用。这是iframe的HTML:<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>
我的步骤是:
$this->selectFrame("xpath=//*[contains (@class, 'cke_wysiwyg_frame')]");
$this->type("xpath=//*[contains (@class, 'cke_wysiwyg_frame')]", $this->contextQuestion);
事情是,由于某种原因,它找不到元素。任何帮助将不胜感激!