example3-test1
store http://sideroad.github.io/grunt-selenium/ url
store Submit submitValue
store Grunt Selenium Test Page title
store 2 two
store For Text Assertion! textAssertion
store For Text Assertion! Not Exists! textNotAssertion
store Amber name
open ${url}
assertLocation ${url}
open /grunt-selenium/
assertLocation ${url}
assertAttribute submit@value ${submitValue}
assertEditable submit
assertNotEditable disabled
assertElementPresent name
assertElementNotPresent not-exists
assertEval 1+1 2
assertEval 1+1 ${two}
assertText span-for-text-assertion For Text Assertion!
assertTextPresent For Text Assertion!
assertTextPresent ${textAssertion}
assertTextNotPresent For Text Assertion! Not Exists!
assertTextNotPresent ${textNotAssertion}
assertTitle Grunt Selenium Test Page
assertTitle ${title}
assertValue submit ${submitValue}
assertValue select 1
select select b
assertValue select 2
select select value=3
assertValue select 3
type name ${name}
clickAndWait submit
assertLocation http://sideroad.github.io/grunt-selenium/submitted.html?name=Amber
assertTitle Submitted!!
goBackAndWait
assertLocation ${url}
assertTitle ${title}
select select label=a
assertValue select 1
select select value=2
assertValue select 2
select select id=C
assertValue select 3
select select index=0
assertValue select 1
storeChecked checkbox isChecked
assertExpression ${isChecked} false
assertNotChecked checkbox
check checkbox
storeChecked checkbox isChecked
assertExpression ${isChecked} true
assertChecked checkbox
uncheck checkbox
storeChecked checkbox isChecked
assertExpression ${isChecked} false
assertNotChecked checkbox
selectFrame id=child-iframe
assertText css=h1 This is for selectFrame assertion
selectFrame relative=top
assertElementNotPresent css=h1
selectFrame index=1
assertText css=h1 This is for selectFrame assertion
selectFrame index=0
assertElementNotPresent css=h1
selectFrame index=1
assertText css=h1 This is for selectFrame assertion
selectFrame relative=parent
assertElementNotPresent css=h1
storeElementPresent name existsElement
assertExpression ${existsElement} true
storeElementPresent not-exists notExistsElement
assertExpression ${notExistsElement} false
storeEval 1+1+1 three
assertExpression ${three} 3
type name Sapphire
storeText name-span name
assertExpression ${name} Sapphire
refreshAndWait
assertLocation ${url}
assertTitle ${title}
waitForElementPresent name-span
click generate-element
waitForElementPresent css=.generatted-span
waitForElementNotPresent not-exists
click delete-element
waitForElementNotPresent id=delete-target
click toggle
waitForNotVisible toggled-target
click toggle
waitForVisible toggled-target
fireEvent toggle click
waitForNotVisible toggled-target
createCookie test=selenium
storeCookieByName test cookie
assertExpression ${cookie} selenium
verifyCookieByName test selenium
assertCookieByName test selenium