CreateAndConvert
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php/accounts/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Account
type Account_name my account ${randomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent my account ${randomSuffix}
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='SecuredActionBarForSearchAndListView']/div/div/a[1]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Lead
type Contact_firstName Silly
type Contact_lastName Sally ${randomSuffix}
select Contact_state_id label=In Progress
type Contact_jobTitle President
select Contact_source_value label=Inbound Call
type Contact_companyName Rabbit 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 123 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 456 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 sally@rabbit.com
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='LeadEditAndDetailsView']/div/h1 exact:Silly Sally ${randomSuffix}
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[1]/td[1] Mrs. Silly Sally ${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] Rabbit Technology
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[8]/td[1] 888999888
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[9]/td[1] 5679076543
compareText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[13]/td[1] 456 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] 123 Main Street
Suite 500
Chicago IL, 60614
USAmap
assertText link=sally@rabbit.com sally@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