Html 如何使用selenium IDE在redactor编辑器中键入
编校器编辑器的html结构如下所示:Html 如何使用selenium IDE在redactor编辑器中键入,html,selenium,ide,Html,Selenium,Ide,编校器编辑器的html结构如下所示: <div class="redactor_text redactor_optional redactor_editor" contenteditable="true" dir="ltr" style="height: 373px;"> <p>dummy text</p> //Here is where the text written inside the editor goes </div> 虚拟文
<div class="redactor_text redactor_optional redactor_editor" contenteditable="true" dir="ltr" style="height: 373px;">
<p>dummy text</p> //Here is where the text written inside the editor goes
</div>
虚拟文本 //这里是编辑器中写入的文本的位置
因此,要在redactor编辑器中编写,我需要在
p
标记中添加文本。我无法找到使用Selenium IDE实现这一点的方法。任何帮助都将不胜感激。提前感谢:)我找到了解决此问题的方法:
<td>runScript</td>
<td>$('#editor').html('text that you want to put there');</td>
<td></td>
runScript
$('#editor').html('要放在那里的文本');
这适用于我们的html,如下所示:
id=“editor”class=“wysiwyg editor”contenteditable=“true”style=“overflow:scroll;最大高度:300px”>测试runScript$('.redactor\u editor').html('要放在那里的文本');-->工作完美:)谢谢。