Search
setTimeout 45000
open index.php/gameRewards/default?clearingSearch=1
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Update
verifyTextPresent Export
verifyTextPresent Delete
verifyTextPresent Advanced
verifyTextPresent Columns
click id=more-search-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click link=Add criteria
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent 1 Criteria Selected
select id=GameRewardsSearchForm_dynamicClauses_0_attributeIndexOrDerivedType label=Cost in Coins
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=GameRewardsSearchForm_dynamicClauses_0_cost 1000
click link=Add criteria
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent 2 Criteria Selected
select id=GameRewardsSearchForm_dynamicClauses_1_attributeIndexOrDerivedType label=Created By User
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=GameRewardsSearchForm_dynamicClauses_1_createdByUser_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=UsersSearchForm_anyMixedAttributes Super User
keyUp UsersSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Super User
verifyTextPresent Super User
verifyValue UsersSearchForm_anyMixedAttributes Super User
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a
click link=Add criteria
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent 3 Criteria Selected
select id=GameRewardsSearchForm_dynamicClauses_2_attributeIndexOrDerivedType label=Name
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=GameRewardsSearchForm_dynamicClauses_2_name Test Game Reward ${randomSuffix}
click link=Add criteria
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent 4 Criteria Selected
select id=GameRewardsSearchForm_dynamicClauses_3_attributeIndexOrDerivedType label=Owner
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=GameRewardsSearchForm_dynamicClauses_3_owner_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=UsersSearchForm_anyMixedAttributes Super User
keyUp UsersSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Super User
verifyTextPresent Super User
verifyValue UsersSearchForm_anyMixedAttributes Super User
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a
click link=Add criteria
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent 5 Criteria Selected
select id=GameRewardsSearchForm_dynamicClauses_4_attributeIndexOrDerivedType label=Quantity Available
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=GameRewardsSearchForm_dynamicClauses_4_quantity 10
click id=search-advanced-search
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[2]/a Test Game Reward ${randomSuffix}
assertText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[2]/a Test Game Reward ${randomSuffix}