Advanced Search Account
setSpeed 3000
setTimeout 45000
open index.php/accounts/default?clearingSearch=1
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
assertTextPresent Update
assertTextPresent Export
assertTextPresent Delete
waitForElementPresent id=more-search-link
click id=more-search-link
click id=addExtraAdvancedSearchRowButton-search-form
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent id=AccountsSearchForm_dynamicClauses_0_attributeIndexOrDerivedType
select id=AccountsSearchForm_dynamicClauses_0_attributeIndexOrDerivedType label=Website
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent id=AccountsSearchForm_dynamicClauses_0_website
type id=AccountsSearchForm_dynamicClauses_0_website NotExistingWebSiteInTheDataBase
click css=#search-advanced-search > span.z-label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent 1 Criteria Selected
waitForTextPresent No results found
click id=clear-search-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent result(s)
waitForTextPresent Test Account ${randomSuffix}
waitForElementPresent id=more-search-link
click id=more-search-link
click id=addExtraAdvancedSearchRowButton-search-form
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent id=AccountsSearchForm_dynamicClauses_0_attributeIndexOrDerivedType
select id=AccountsSearchForm_dynamicClauses_0_attributeIndexOrDerivedType label=Name
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent id=AccountsSearchForm_dynamicClauses_0_name
type id=AccountsSearchForm_dynamicClauses_0_name Test Account ${randomSuffix}
click id=addExtraAdvancedSearchRowButton-search-form
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=AccountsSearchForm_dynamicClauses_1_attributeIndexOrDerivedType label=Office Phone
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent id=AccountsSearchForm_dynamicClauses_1_officePhone
type id=AccountsSearchForm_dynamicClauses_1_officePhone 456777
click id=addExtraAdvancedSearchRowButton-search-form
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select id=AccountsSearchForm_dynamicClauses_2_attributeIndexOrDerivedType label=Any Email Address
waitForElementPresent id=AccountsSearchForm_dynamicClauses_2_anyEmail
type id=AccountsSearchForm_dynamicClauses_2_anyEmail test2@testcompany.com
click id=addExtraAdvancedSearchRowButton-search-form
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent id=AccountsSearchForm_dynamicClauses_3_attributeIndexOrDerivedType
select id=AccountsSearchForm_dynamicClauses_3_attributeIndexOrDerivedType label=Any Street
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent id=AccountsSearchForm_dynamicClauses_3_anyStreet
type id=AccountsSearchForm_dynamicClauses_3_anyStreet 456 Main Street
click css=#search-advanced-search > span.z-label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Account ${randomSuffix}
assertTextPresent 4 Criteria Selected
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=more-search-link
click id=save-as-advanced-search
click id=save-advanced-search
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Name cannot be blank.
click id=show-dynamic-search-structure-div-link-search-form
type id=AccountsSearchForm_dynamicStructure 1 or or 2 AND 3 AND 4
click id=search-advanced-search
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent The structure is invalid.