Updating scripts from earlier Selenium IDE versions

The supported Selenium IDE versions 2.2.X and 3.2.X use the .side format for recording synthetic scripts rather than the .html format used by older versions of Selenium IDE. If you have existing .html scripts, you can still use them. Scripts that were created with older versions of Selenium IDE might not work fully with the latest Firefox and Selenium drivers used by IBM® Cloud Availability Monitoring. In some instances, you might want to edit the .html scripts, re-record them in the new .side format, or import the .html script and save to the .side format.

Procedure

  • Exception: If you want to interact with the Select2 element, do not use the select command (see https://github.com/SeleniumHQ/selenium-ide).
    The old script is
    <td>select</td> 
    <td>id=country</td> 
    <td>label=United States</td>
    It should be changed to
    <tr>
       <td>runScript</td>
       <td>window.scrollTo(0,810)</td>
       <td></td> 
    </tr> 
    <tr>
       <td>click</td>
       <td>id=select2-country-container</td>
       <td></td> 
    </tr> 
    <tr>
       <td>click</td>
       <td>xpath=(//ul[@id='select2-country-results']/li[text() = 'United States'])</td>
       <td></td> 
    </tr> 
  • Limitation: .side scripts recorded with Selenium IDE 3.2.X or 3.3.X are supported; the linkText locator is not supported.