getVal

getVal

Retrieves values, login details etc.. from the user-extension.js file to allow data driven testing and
the creation of more "universal" test structures.

Adding this extension to selenium IDE:

Download the zip file from the attachments tab above and add the code to your 'user-extensions.js' (You will have to create this file if it does not already exists and add its path to selenium IDE in Options -> Options):

Usage

assertLocation javascriptCURLYBRACKETgetVal("location")CURLYBRACKET  
type username javascriptCURLYBRACKETgetVal("username")CURLYBRACKET
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Oct 04, 2010

    Sam Hasler says:

    I found it was easier to use the include extension and have separate tests where...

    I found it was easier to use the include extension and have separate tests where you store variables with the built in store command.