Pages

Wednesday, March 27, 2013

Working with Variables in Selenium IDE

Selenium IDE allows storing and recalling values in the scripts.
To get a value from a hidden field use
storeValue | //input[@id='ItemId'] | itemId
This will store the value of the hidden input element into a variable named itemId.
To retrieve this variable later simply refer to it as
${itemId}
inside any other command.

See more Selenium-related tips on my Selenium page.

No comments: