Mixed Model Search
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
focus id=globalSearchInput
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=globalSearchInput My Contact ${randomSuffix}
typeKeys id=globalSearchInput \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent All results
mouseOver //a[@class='ui-corner-all']/span[. = "All results"]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //a[@class='ui-corner-all']/span[. = "All results"]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent No results found
assertTextNotPresent My Contact ${randomSuffix}
click xpath=(//button[@type='button'])[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ui-multiselect-MixedModelsSearchForm_anyMixedAttributesScope-option-2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click xpath=(//button[@type='button'])[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=span.z-label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent No results found
assertNotVisible id=AccountsForMixedModelsSearchListView
assertVisible id=ContactsForMixedModelsSearchListView
assertNotVisible id=LeadsForMixedModelsSearchListView
assertNotVisible id=OpportunitiesForMixedModelsSearchListView
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='SecuredActionBarForLeadsSearchAndListView']/div/nav/div[1]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=Contact_firstName
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=Contact_firstName My Contact
click id=Contact_lastName
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=Contact_lastName ${randomSuffix}
type id=Contact_primaryEmail_emailAddress new${randomSuffix}@zurmo.org
clickAndWait //div[@class='float-bar']/div/div/a/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
focus id=globalSearchInput
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=globalSearchInput My Contact ${randomSuffix}
typeKeys id=globalSearchInput \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent All results
mouseOver //a[@class='ui-corner-all']/span[. = "All results"]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //a[@class='ui-corner-all']/span[. = "All results"]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent My Contact ${randomSuffix}
clickAndWait link=My Contact ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Convert
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=#account-create-title > a.account-skip-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait css=#AccountSkip > span.z-label
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //button[@type='button']
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ui-multiselect-globalSearchScope-option-3
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
focus id=globalSearchInput
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=globalSearchInput My Contact ${randomSuffix}
typeKeys id=globalSearchInput \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent All results
mouseOver //a[@class='ui-corner-all']/span[. = "All results"]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //a[@class='ui-corner-all']/span[. = "All results"]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent My Contact ${randomSuffix}
assertNotVisible id=AccountsForMixedModelsSearchListView
assertNotVisible id=ContactsForMixedModelsSearchListView
assertVisible id=LeadsForMixedModelsSearchListView
assertNotVisible id=OpportunitiesForMixedModelsSearchListView
click xpath=(//button[@type='button'])[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ui-multiselect-MixedModelsSearchForm_anyMixedAttributesScope-option-2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click xpath=(//button[@type='button'])[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=span.z-label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent My Contact ${randomSuffix}
click xpath=(//button[@type='button'])[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=label.ui-corner-all.ui-state-hover
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ui-multiselect-MixedModelsSearchForm_anyMixedAttributesScope-option-0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ui-multiselect-MixedModelsSearchForm_anyMixedAttributesScope-option-2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=ui-multiselect-MixedModelsSearchForm_anyMixedAttributesScope-option-3
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=MixedModelsSearchForm_term new${randomSuffix}
click css=span.z-label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent My Contact ${randomSuffix}
assertTextPresent No results found
assertNotVisible id=AccountsForMixedModelsSearchListView
assertVisible id=ContactsForMixedModelsSearchListView
assertVisible id=LeadsForMixedModelsSearchListView
assertNotVisible id=OpportunitiesForMixedModelsSearchListView