ConvertSkipAccount
setTimeout 45000
open index.php/leads/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Lead
type Contact_firstName Sunny
type Contact_lastName Dunes ${randomSuffix}
select Contact_state_id label=In Progress
type Contact_jobTitle President
select Contact_source_value label=Inbound Call
type Contact_companyName Sand Technology
type Contact_officePhone 456-777-6655
type Contact_mobilePhone 888999888
click Contact_owner_SelectLink
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 125 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 458 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 sunny@rabbit.com
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='LeadEditAndDetailsView']/div/h1 exact:Sunny Dunes ${randomSuffix}
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[1]/td[1] Mrs. Sunny Dunes ${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] Sand Technology
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[8]/td[1] 888999888
compareText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[13]/td[1] 458 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] 125 Main Street
Suite 500
Chicago IL, 60614
USAmap
assertText link=sunny@rabbit.com sunny@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 Dunes ${randomSuffix}
keyUp LeadsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText link=Sunny Dunes ${randomSuffix} Sunny Dunes ${randomSuffix}
clickAndWait link=Sunny Dunes ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Convert
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click link=Skip Account
clickAndWait //*[@id="AccountSkip"]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText //div[@id='ContactEditAndDetailsView']/div/h1 exact:Sunny Dunes ${randomSuffix}
assertText //div[@id='ContactEditAndDetailsView']/div/div[2]/table/tbody/tr[2]/td[1] Qualified