global

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

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Nov 27, 2006

    Sumith Gamage says:

    This is a great extension saved my life a lot! I have extended some other functi...

    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

  2. Apr 23, 2007

    Neil Stevens says:

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

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