Saad Saghir
Saad Saghir

Reputation: 55

Selenium IDE Store command

can we declare a variable in one test case using "Store" command and use globally in another test case of the same test suite.


My Question is how can we use variable globally in Selenium IDE ?

Upvotes: 1

Views: 613

Answers (2)

NarendraR
NarendraR

Reputation: 7708

Answer is Yes

You can use store command in one test case and use its value in another test

Format is

Command : store
Target : 9999999999
Value : username

And This is how you can access it:

${username}

Example : suppose i have to perform login in some testcase so here i will store username and password at one testcase using store and whenever i required i will use in following manner :

Command : type
Target : id=MobileNo
Value : ${username}

Upvotes: 1

Related Questions