Convert Select Account
setTimeout 45000
open index.php/leads/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Lead
setSpeed 3000
type Contact_firstName Select
type Contact_lastName Account ${randomSuffix}
clickAndWait save
setSpeed 0
waitForText //div[@id='zurmoView']/div/table/tbody/tr[1]/td Select Account ${randomSuffix}
waitForTextPresent Select Account ${randomSuffix}
clickAndWait link=Convert
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='LeadConvertView']/div/h1/span/span Lead Conversion: Select Account ${randomSuffix}
waitForTextPresent Create Account or Select Account or Skip Account
click //a[@class='account-select-link']
waitForTextPresent Account Name
click //a[@id='AccountSelectForm_accounts_SelectLink']/span[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type AccountsSearchForm_anyMixedAttributes Convert Lead ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td Convert Lead ${randomSuffix}
verifyTextPresent Convert Lead ${randomSuffix}
verifyValue AccountsSearchForm_anyMixedAttributes Convert Lead ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //a[@id='AccountSelect']/span[3]
waitForText //div[@id='LeadConvertOpportunityView']/div/h1/span/span Lead Conversion: Select Account ${randomSuffix}
waitForTextPresent Create Opportunity or Skip Opportunity
click //a[@class='opportunity-skip-link']
waitForTextPresent Complete lead conversion without creating an opportunity.
clickAndWait //a[@id='OpportunitySkip']/span[3]
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type LeadsSearchForm_anyMixedAttributes Select Account ${randomSuffix}
keyUp LeadsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent No results found
verifyValue LeadsSearchForm_anyMixedAttributes Select Account ${randomSuffix}
open index.php/contacts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type ContactsSearchForm_anyMixedAttributes Select Account ${randomSuffix}
keyUp ContactsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Select Account ${randomSuffix}
verifyTextPresent Select Account ${randomSuffix}
verifyValue ContactsSearchForm_anyMixedAttributes Select Account ${randomSuffix}
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type AccountsSearchForm_anyMixedAttributes Convert Lead ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Convert Lead ${randomSuffix}
verifyTextPresent Convert Lead ${randomSuffix}
verifyValue AccountsSearchForm_anyMixedAttributes Convert Lead ${randomSuffix}