Changes for page Selenium Command Examples

Last modified by Kieran Kelleher on 2008/07/02 15:10

From version 8.1
edited by Kieran Kelleher
on 2007/11/29 11:22
Change comment: There is no comment for this version
To version 10.1
edited by Kieran Kelleher
on 2007/11/29 09:31
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,13 +1,9 @@
1 1  Click a link having css class 'sel//create//team'
2 2  
3 -| clickAndWait | ~/~/a@class='sel//create//team' | |
3 +| clickAndWait | ~/~/a[[@class='sel_create_team']] |
4 4  Add the first element of a list browser (aka. 'select' element) to the current selections. The list browser is identified by css class 'sel//browser//list'
5 -| addSelection | ~/~/select@class='sel//browser//list' | value=0 |
5 +| addSelection | ~/~/select[[interwiki:class='sel_browser_list':]] | value=0 |
6 6  Add the third element of a list browser (aka. 'select' element) to the current selections. The list browser is identified by css class 'sel//browser//list'
7 -| addSelection | ~/~/select@class='sel//browser//list' | value=2 |
7 +| addSelection | ~/~/select[[interwiki:class='sel_browser_list':]] | value=2 |
8 8  Add the item named "John Murphy" of a list browser (aka. 'select' element) to the current selections. The list browser is identified by css class 'sel//browser//list'
9 -| addSelection | ~/~/select@class='sel//browser//list' | label=John Murphy |
10 -Store the current value of an input field into a script variable. The input field is identified by the css class "sel//EditTeam//teamName" and we are storing the current field value into a script variable named "var//EditTeam//teamName"
11 -| storeValue | ~/~/input@class='sel//EditTeam//teamName' | var//EditTeam//teamName |
12 -Use a stored variable later in the script (on a different page or whatever) to click a dynamic hyperlink that uses the stored value as the hyperlink text
13 -| clickAndWait | link=$var//EditTeam//teamName |
9 +| addSelection | ~/~/select[[interwiki:class='sel_browser_list':]] | label=John Murphy