ConvertSelectAccount
setTimeout 45000
open index.php/leads/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Lead
type Contact_firstName Sizzy
type Contact_lastName Sanny ${randomSuffix}
select Contact_state_id label=In Progress
type Contact_jobTitle President
select Contact_source_value label=Inbound Call
type Contact_companyName Frog Technology
type Contact_officePhone 456-777-6654
type Contact_mobilePhone 888999887
click Contact_owner_SelectLink
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent UsersSearchForm_anyMixedAttributes
type UsersSearchForm_anyMixedAttributes Sam Smith
keyUp UsersSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='UsersModalListView']/div/table/tbody/tr/td/a Sam Smith
click link=Sam Smith
waitForValue Contact_owner_name Sam Smith
assertNotValue Contact_owner_id
type Contact_primaryAddress_street1 124 Main Street
type Contact_primaryAddress_street2 Suite 500
type Contact_primaryAddress_city Chicago
type Contact_primaryAddress_state IL
type Contact_primaryAddress_postalCode 60614
type Contact_primaryAddress_country USA
type Contact_secondaryAddress_street1 457 Bee Street
type Contact_secondaryAddress_street2 Suite 400
type Contact_secondaryAddress_city Gary
type Contact_secondaryAddress_state Indiana
type Contact_secondaryAddress_postalCode 67898
type Contact_secondaryAddress_country USA
select Contact_industry_value label=Financial Services
type Contact_website http://www.rabbit.com
type Contact_description test
select Contact_title_value label=Mrs.
type Contact_officeFax 5679076543
type Contact_primaryEmail_emailAddress sizzy@rabbit.com
click save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='LeadEditAndDetailsView']/div/h1 exact:Sizzy Sanny ${randomSuffix}
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[1]/td[1] Mrs. Sizzy Sanny ${randomSuffix}
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[2]/td[1] In Progress
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[4]/td[1] Frog Technology
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[8]/td[1] 888999887
compareText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[13]/td[1] 457 Bee Street
Suite 400
Gary Indiana, 67898
USAmap
assertText link=exact:http://www.rabbit.com exact:http://www.rabbit.com
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[14]/td[1] Financial Services
compareText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[12]/td[1] 124 Main Street
Suite 500
Chicago IL, 60614
USAmap
assertText link=sizzy@rabbit.com sizzy@rabbit.com
assertText link=Sam Smith Sam Smith
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[7]/td[1] Inbound Call
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[16]/td[1] test
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type LeadsSearchForm_anyMixedAttributes Sanny ${randomSuffix}
keyUp LeadsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText link=Sizzy Sanny ${randomSuffix} Sizzy Sanny ${randomSuffix}
clickAndWait link=Sizzy Sanny ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Convert
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click link=Select Account
click AccountSelectForm_accounts_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent AccountsSearchForm_anyMixedAttributes
type id=AccountsSearchForm_anyMixedAttributes my account ${randomSuffix}
keyUp id=AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/table/tbody/tr/td[1]/a my account ${randomSuffix}
click //div[@id='list-viewmodal']/table/tbody/tr/td[1]/a
waitForValue AccountSelectForm_accountName my account ${randomSuffix}
clickAndWait //*[@id="AccountSelect"]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText //div[@id='ContactEditAndDetailsView']/div/h1 Sizzy Sanny ${randomSuffix}
assertText link=my account ${randomSuffix} my account ${randomSuffix}