Child pages
  • Selenium Command Examples

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Click a link having css class 'sel_create_team'

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f7e59b9c-bddb-4f0f-8a38-42b3017f45a2"><ac:plain-text-body><![CDATA[

clickAndWait

//a[WONDER:@class='sel_create_team']

 

]]></ac:plain-text-body></ac:structured-macro>

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'

...

addSelection

//select[WONDER:@class='sel_browser_list']

value=0 ]]></ac:plain-text-body></ac:structured-macro>

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'

...

addSelection

//select[WONDER:@class='sel_browser_list']

value=2 ]]></ac:plain-text-body></ac:structured-macro>

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'

...

addSelection

//select[WONDER:@class='sel_browser_list']

label=John Murphy

]]></ac:plain-text-body></ac:structured-macro>

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"

...

"

...

storeValue

//input[WONDER:@class='sel_EditTeam_teamName']

var_EditTeam_teamName ]]></ac:plain-text-body></ac:structured-macro>

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

...

Type the value 'abc' in the input field having class 'sel_input'

...

type

//input[WONDER:@class='sel_input']

abc ]]></ac:plain-text-body></ac:structured-macro>

Store the value 'abc' in a script variable named var1

...