Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何使用selenium IDE在redactor编辑器中键入_Html_Selenium_Ide - Fatal编程技术网

Html 如何使用selenium IDE在redactor编辑器中键入

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> 虚拟文

编校器编辑器的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>

虚拟文本​

//这里是编辑器中写入的文本的位置

因此,要在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('要放在那里的文本');-->工作完美:)谢谢。