Wiki source code of Selenium Command Examples
Version 14.1 by Kieran Kelleher on 2007/11/29 11:20
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
6.1 | 1 | Click a link having css class 'sel//create//team' |
2 | |||
![]() |
14.1 | 3 | | clickAndWait | ~/~/a@class='sel//create//team' | |
4 | |||
![]() |
6.1 | 5 | 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' |
![]() |
14.1 | 6 | |
7 | | addSelection | ~/~/select@class='sel//browser//list' | value=0 | ||
8 | |||
![]() |
6.1 | 9 | 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' |
![]() |
14.1 | 10 | |
11 | | addSelection | ~/~/select@class='sel//browser//list' | value=2 | ||
12 | |||
![]() |
6.1 | 13 | 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' |
![]() |
14.1 | 14 | |
![]() |
12.1 | 15 | | addSelection | ~/~/select@class='sel//browser//list' | label=John Murphy |
![]() |
14.1 | 16 | |
17 | 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" | ||
18 | |||
19 | |storeValue|~/~/input[[interwiki:class='sel_EditTeam_teamName':]]|var//EditTeam//teamName | ||
20 | |||
21 | 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 | ||
22 | |||
23 | |clickAndWait|link=${{var_EditTeam_teamName}}{{/var_EditTeam_teamName}}| |