Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A lorem ipsum text extension for the Selenium IDE - useful for populating input fields with words or paragraphs of lorem text. Click the link below for a usage screenshot.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
lipsumtext.js

README.md

Installation

  1. Install Selenium in Firefox
  2. Open Selenium in Firefox by clicking Tools > Selenium IDE
  3. With the Selenium IDE window open, click Options > Options

  4. Add the full path to lipsumtext.js in the Selenium Core extensions field

    TIP: You can specify multiple extensions. Simply separate each path with a comma.

  5. Test

Usage

To use this extension you'll be creating a command that will set a variable. You can then use this variable later by other commands.

You can create a new command using either of these methods:

  1. right-click in the white table box within the Selenium IDE main window and choose Insert New Command.
  2. use the Selenium main menu: click Edit > Insert New Command

Here are some examples of setting a variable:

Command Target Value (result)
lipsumText 20 words x 20 words; entire string starts with capital letter and ends with period; string may contain additional punctuation
lipsumText 1 paragraph x 1 paragraphs of 15 to 300 words; paragraph starts with capital letter and ends with period; paragraph may contain additional punctuation
lipsumText 3 paragraphs x 3 paragraphs of 15 to 300 words each; each paragraph starts with capital letter and ends with period; paragraphs may contain additional punctuation
lipsumText 5 paragraphs|htmltags x 5 paragraphs of 15 to 300 words each; paragraphs are wrapped in <p> tags; each paragraph starts with capital letter and ends with period; paragraphs may contain additional punctuation
lipsumText 5 words|wordcaps x 5 words; each word capitalized; may contain additional punctuation
lipsumText 10 words|wordcaps|nomarks x 10 words; each word capitalized; will not contain any punctuation

Here is an example of using the variable we created above to insert the lorem ipsum text into a text field:

Command Target Value
type id=my-edit-field-value ${x}

Future Improvements

  • None (see git log for latest improvements)
Something went wrong with that request. Please try again.