Global

storeValue, storeText, storeAttribute and store actions now have 'global' equivalents.
Using storeValueGlobal, storeTextGlobal, storeAttributeGlobal or storeGlobal will store the variable globally, making it available it subsequent tests.

See the Reference.html for storeValue, storeText, storeAttribute and store for the arguments you should send to the new Global functions.

example of use

in testA.html:

storeGlobal http://localhost/ baseURL

in textB.html (executed after testA.html):

open ${baseURL}Main.jsp  

notes

Selenium.prototype.replaceVariables from selenium-api.js has been replaced here to make it use global variables if no local variable is found.
This might cause issues if you upgraded Selenium in the future and this function has been changed.

File: 

AttachmentSize
Package icon globalStoreCommand.zip3.73 KB

Type: 

User-Extension