Create Account
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
assertTextPresent Update
assertTextPresent Export
assertTextPresent Delete
clickAndWait //div[@id='SecuredActionBarForAccountsSearchAndListView']/div/nav/div[1]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create Account
clickAndWait save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Name cannot be blank.
type Account_name Test Account ${randomSuffix}
click Account_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='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Sam Smith
assertText link=Sam Smith Sam Smith
click link=Sam Smith
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Account_owner_name Sam Smith
assertNotValue Account_owner_id
type Account_employees 5
type Account_officeFax 123555
type Account_officePhone 456777
type Account_annualRevenue 500
select Account_industry_value label=Financial Services
select Account_type_value label=Vendor
type Account_website http://www.testingcompany.com
type Account_billingAddress_street1 123 ABC Street
type Account_billingAddress_street2 suite 100
type Account_billingAddress_city Chicago
type Account_billingAddress_state IL
type Account_billingAddress_postalCode 60611
type Account_billingAddress_country USA
type Account_shippingAddress_street1 456 Main Street
type Account_shippingAddress_street2 Suite 200
type Account_shippingAddress_city New York
type Account_shippingAddress_state NY
type Account_shippingAddress_postalCode 12133
type Account_shippingAddress_country USA
type Account_description This is a test account
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Account ${randomSuffix}
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[1]/td Test Account ${randomSuffix}
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[2]/td 456777
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[3]/td Financial Services
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[4]/td 123555
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[5]/td 5
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[6]/td 500
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[7]/td Vendor
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[8]/td/a http://www.testingcompany.com
compareText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[9]/td/a 123 ABC Street
suite 100
Chicago IL, 60611
USA
compareText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[10]/td/a 456 Main Street
Suite 200
New York NY, 12133
USA
assertText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[11]/td This is a test account