Dashboard > Selenium > ... > Contributed User-Extensions > global
Selenium Log In View a printable version of the current page.
global
Added by Paul Hammant, last edited by Paul Hammant on Dec 02, 2005
Labels: 
(None)

description

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.

download

global store command v1_0

This is a great extension saved my life a lot! I have extended some other functionalities using this extension. Have a look at storeTableContent - Sumith

This should be in the core by now shouldn't it?

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators