Changes for page Selenium Command Examples

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

From version 19.1
edited by Kieran Kelleher
on 2008/07/02 14:51
Change comment: There is no comment for this version
To version 20.1
edited by Kieran Kelleher
on 2008/07/02 15:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,19 +4,21 @@
4 4  
5 5  Click a link having css class 'sel//create//team'
6 6  
7 -| clickAndWait | ~/~/a@class='sel//create//team' | |
7 +| clickAndWait | ~/~/aWONDER:@class='sel//create//team' | |
8 8  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'
9 -| addSelection | ~/~/select@class='sel//browser//list' | value=0 |
9 +| addSelection | ~/~/selectWONDER:@class='sel//browser//list' | value=0 |
10 10  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'
11 -| addSelection | ~/~/select@class='sel//browser//list' | value=2 |
11 +| addSelection | ~/~/selectWONDER:@class='sel//browser//list' | value=2 |
12 12  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'
13 -| addSelection | ~/~/select@class='sel//browser//list' | label=John Murphy |
13 +| addSelection | ~/~/selectWONDER:@class='sel//browser//list' | label=John Murphy |
14 14  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"
15 -| storeValue | ~/~/input@class='sel//EditTeam//teamName' | var//EditTeam//teamName |
15 +| storeValue | ~/~/inputWONDER:@class='sel//EditTeam//teamName' | var//EditTeam//teamName |
16 16  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
17 17  | clickAndWait | link=$var//EditTeam//teamName | |
18 18  Type the value 'abc' in the input field having class 'sel//input'//
19 -|type|~/~/input@class='sel//input'//|abc
19 +| type | ~/~/inputWONDER:@class='sel//input' //| abc |
20 +Store the value 'abc' in a script variable named var1
21 +|store|abc|var1
20 20  
21 21  === XPath Resources ===
22 22