TestOptimal Wiki

Model-Based Testing (MBT)

User Tools

Site Tools


tag_scriptlet

The tag <scriptlet> is used to execute a list of Selenium IDE scripts which can be generated (recorded) using Selenium IDE (Rel. 4.0.15).

For example:

 <scriptlet lid="13" type="SeleniumScript">
  <tr>
      <td>clickAndWait</td>
      <td>link=Features</td>
      <td></td>
  </tr>
  <tr>
      <td>clickAndWait</td>
      <td>link=Download</td>
      <td></td>
  </tr>
  <tr>
      <td>clickAndWait</td>
      <td>link=Purchase</td>
      <td></td>
  </tr>
  <tr>
      <td>select</td>
      <td>id=licenseNumProMBT</td>
      <td>label=1</td>
  </tr>
  <tr>
      <td>select</td>
      <td>id=licenseNumVirtualUser</td>
      <td>label=3</td>
  </tr>
  <tr>
      <td>type</td>
      <td>id=email</td>
      <td>lin.yaxiong@gmail.com</td>
  </tr>
  <tr>
      <td>type</td>
      <td>id=emailConf</td>
      <td>lin.yaxiong@gmail.com</td>
  </tr>
  <tr>
      <td>type</td>
      <td>id=firstName</td>
      <td>Yaxiong</td>
  </tr>
  <tr>
      <td>type</td>
      <td>id=lastName</td>
      <td>Lin</td>
  </tr>
  <tr>
      <td>type</td>
      <td>id=company</td>
      <td>TO</td>
  </tr>
  <tr>
      <td>click</td>
      <td>link=ProMBT</td>
      <td></td>
  </tr>
  <tr>
      <td>clickAndWait</td>
      <td>link=Home</td>
      <td></td>
  </tr>
 </scriptlet>
tag_scriptlet.txt · Last modified: 2016/09/22 02:36 (external edit)