Convert Create Account
setTimeout 45000
open index.php/leads/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Lead
type Contact_firstName Create
type Contact_lastName Account ${randomSuffix}
clickAndWait save
waitForText //div[@id='zurmoView']/div/table/tbody/tr[1]/td Create Account ${randomSuffix}
waitForTextPresent Create Account ${randomSuffix}
clickAndWait link=Convert
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='LeadConvertView']/div/h1/span/span Lead Conversion: Create Account ${randomSuffix}
waitForTextPresent Create Account or Select Account or Skip Account
waitForElementPresent //a[@class='account-create-link']
waitForElementPresent //a[@class='account-select-link']
waitForElementPresent //a[@class='account-skip-link']
waitForText //form[@id='edit-form']/div[3]/div/a[1]/span[3] Next
waitForText //form[@id='edit-form']/div[3]/div/a[2]/span Cancel
clickAndWait //form[@id='edit-form']/div[3]/div/a[1]/span[3]
waitForTextPresent Name cannot be blank.
click //a[@class='account-select-link']
waitForTextPresent Account Name
clickAndWait //a[@id='AccountSelect']/span[3]
waitForTextPresent Account Id cannot be blank.
click link=Cancel
waitForText //div[@id='zurmoView']/div/table/tbody/tr[1]/td Create Account ${randomSuffix}
waitForTextNotPresent Lead Conversion: Create Account ${randomSuffix}
clickAndWait link=Convert
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Account or Select Account or Skip Account
type //input[@id='Account_name'] Convert Lead ${randomSuffix}
clickAndWait //form[@id='edit-form']/div[3]/div/a[1]/span[3]
waitForText //div[@id='LeadConvertOpportunityView']/div/h1/span/span Lead Conversion: Create Account ${randomSuffix}
waitForTextPresent Create Opportunity or Skip Opportunity
waitForElementPresent //a[@class='opportunity-create-link']
waitForElementPresent //a[@class='opportunity-skip-link']
waitForText //form[@id='edit-form']/div[3]/div/a[1]/span Back
waitForText //form[@id='edit-form']/div[3]/div/a[2]/span[3] Complete Conversion
waitForText //form[@id='edit-form']/div[3]/div/a[3]/span Cancel
clickAndWait //form[@id='edit-form']/div[3]/div/a[2]/span[3]
waitForTextPresent Name cannot be blank.
waitForTextPresent Close Date cannot be blank.
clickAndWait css=span.z-label
waitForTextNotPresent Create Opportunity or Skip Opportunity
waitForTextPresent Create Account or Select Account or Skip Account
type //input[@id='Account_name'] Convert Lead ${randomSuffix}
clickAndWait //form[@id='edit-form']/div[3]/div/a[1]/span[3]
waitForTextPresent Create Opportunity or Skip Opportunity
click link=Cancel
waitForText //div[@id='zurmoView']/div/table/tbody/tr[1]/td Create Account ${randomSuffix}
waitForTextNotPresent Lead Conversion: Create Account ${randomSuffix}
clickAndWait link=Convert
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Account or Select Account or Skip Account
type //input[@id='Account_name'] Convert Lead ${randomSuffix}
clickAndWait //form[@id='edit-form']/div[3]/div/a[1]/span[3]
waitForText //div[@id='LeadConvertOpportunityView']/div/h1/span/span Lead Conversion: Create Account ${randomSuffix}
waitForTextPresent Create Opportunity or Skip Opportunity
waitForElementPresent //a[@class='opportunity-create-link']
waitForElementPresent //a[@class='opportunity-skip-link']
type //input[@id='Opportunity_name'] Convert Lead ${randomSuffix}
click css=button.ui-datepicker-trigger
click link=28
clickAndWait //form[@id='edit-form']/div[3]/div/a[2]/span[3]
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type LeadsSearchForm_anyMixedAttributes Create Account ${randomSuffix}
keyUp LeadsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent No results found
verifyValue LeadsSearchForm_anyMixedAttributes Create Account ${randomSuffix}
open index.php/contacts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type ContactsSearchForm_anyMixedAttributes Create 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 Create Account ${randomSuffix}
verifyTextPresent Create Account ${randomSuffix}
verifyValue ContactsSearchForm_anyMixedAttributes Create 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}
open index.php/opportunities/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type OpportunitiesSearchForm_anyMixedAttributes Convert Lead ${randomSuffix}
keyUp OpportunitiesSearchForm_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 OpportunitiesSearchForm_anyMixedAttributes Convert Lead ${randomSuffix}