Selenium IDE: How to Pass Variables

前端 未结 2 1575
我寻月下人不归
我寻月下人不归 2020-12-28 22:26

I have 3 different accounts in a website that I want to login and print a report every single day.

I\'ve done a Selenium IDE recording that allows me to login and pr

相关标签:
2条回答
  • 2020-12-28 22:28

    You can go with parameterization

    For parameterization you need to create js file

    For eg. Js file contains

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

    You can upload this JS file to Options > Options... > General tab > Selenium IDE extension.

    Sample script for parameterization

    enter image description here

    0 讨论(0)
  • 2020-12-28 22:42

    Try this way of using Selenium IDE - http://greenlanternautomationframework.blogspot.com/p/selenium-ide.html

    0 讨论(0)
提交回复
热议问题