Selenium IDE: how to pass variables

I have 3 different accounts on the website that I want to log in and print a report every day.

I made a Selenium IDE record that allows me to log in and print a report, however, every day I have to change the variable 3 times (for 3 different usernames and passwords).

How to pass a variable to the "value" field of the "type" command?

Thanks.

Best

+8
selenium-webdriver selenium-ide selenium-rc
source share
2 answers

You can go with parameterization

For parameterization you need to create a js file

For example, the Js file contains

var username = ["parameterization1@mailinator.com", "parameterization2@mailinator.com"); var password = ["parameterization1", "parameterization2"]; 

You can load this JS file in Options> Options ...> General tab> Selenium IDE extension.

Example script for parameterization

enter image description here

+13
source share
-3
source share

All Articles