Previous Topic: Set Advanced Options on the Selenium Web DriverNext Topic: Import a Selenium Builder JSON into CA Application Test


Create and Export a Selenium Builder Recording

Selenium Builder is a Firefox add-on that lets you record actions in a web-based user interface and create Selenium tests. The first step in creating a Selenium test step in CA Application Test is to create a Selenium Builder test script.

If Selenium Builder is not installed, download and install it from the following URL: http://sebuilder.github.io/se-builder/.

Note: We recommend that you turn off the automatic upgrade option:

  1. Click Firefox, Add Ons on the main Firefox menu.

    The Add-ons Manager opens.

  2. Click Extensions and double-click Selenium Builder.
  3. Select the Off option for Automatic Updates.

Follow these steps:

  1. Open your Firefox browser.
  2. Click Firefox, Web Developer, Launch Selenium Builder on the main Firefox menu.

    The Selenium Builder page opens.

    Note: If you have the Add-on Bar enabled, you can click Icon to launch Selenium Builder in the bottom right corner of the Firefox browser window.

  3. Enter the URL of the web application you want to test in the Start recording at field.
  4. Click Selenium 2.

    Note: Selenium 1 does not support the required ability to export to JSON.

  5. Navigate to the web application and perform the actions you want to test.
  6. When you are done, return to the Selenium Builder page and click Stop Recording.

    Note: For more information about creating Selenium Builder tests, see the Selenium Builder documentation at http://sebuilder.github.io/se-builder/.

  7. Click File, Export.

    The Choose Export Format dialog opens.

  8. Click Save as JSON.
  9. Browse to the directory where you want to save the JSON file.
  10. Enter a name for the JSON file and click Save.
  11. To verify that the script is valid, run the script in Selenium Builder.
  12. Click Run, Run test locally.

    The results and any script errors appear.