我应该使用哪个selenium IDE命令来执行javascript语句

Man*_*nas 4 selenium-ide

我试图在selenium IDE中使用javascript设置下拉值,但无法确定要使用哪个selenium命令.

Ann*_*Tea 11

Selenium IDE命令执行javascript语句:runScript使用javascript语句作为参数.

示例(可以在Google首页上运行):

<tr>
  <td>runScript</td>
  <td>document.getElementById('searchText').setAttribute("value", "hello");</td>
  <td></td>
</tr>
Run Code Online (Sandbox Code Playgroud)