Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which selenium IDE command should I use to execute a javascript statement

Tags:

selenium-ide

I am trying to set a dropdown value using javascript in selenium IDE, but not able to figure out which selenium command to use.

like image 818
Manas Avatar asked Dec 16 '22 04:12

Manas


1 Answers

Selenium IDE command to execute a javascript statement: runScript with the javascript statement as argument.

Example (can be run on Google startpage):

<tr>
  <td>runScript</td>
  <td>document.getElementById('searchText').setAttribute("value", "hello");</td>
  <td></td>
</tr>
like image 183
AnnTea Avatar answered Apr 26 '23 06:04

AnnTea