Create Edit Delete Notes For Accounts
setTimeout 45000
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type AccountsSearchForm_anyMixedAttributes my account ${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 my account ${randomSuffix}
verifyTextPresent my account ${randomSuffix}
assertText link=my account ${randomSuffix} my account ${randomSuffix}
clickAndWait link=my account ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent my account ${randomSuffix}
verifyTextPresent Notes
type Note_description This is an Inline Note ${randomSuffix} for account without more options
click save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewAccountLatestActivitiesForPortletView']/table/tbody/tr/td/div/span/a This is an Inline Note ${randomSuffix} for account without more options
assertText link=This is an Inline Note ${randomSuffix} for account without more options This is an Inline Note ${randomSuffix} for account without more options
clickAndWait link=This is an Inline Note ${randomSuffix} for account without more options
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='NoteEditAndDetailsView']/div/div[2]/div/table/tbody/tr[1]/td This is an Inline Note ${randomSuffix} for account without more options
verifyTextPresent my account ${randomSuffix}
verifyTextPresent Owner
verifyTextPresent Super User
setSpeed 3000
assertText link=Edit Edit
clickAndWait link=Edit
setSpeed 0
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent This is an Inline Note ${randomSuffix} for account without more options
type Note_description This is an Inline New Note ${randomSuffix} for account without more options
click Note_occurredOnDateTime
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Hour
click //div[@id='ui-datepicker-div']/div[1]/a[2]/span
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='ui-datepicker-div']/table/tbody/tr[2]/td[3]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='ui-datepicker-div']/div[3]/button[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue ActivityItemForm_Account_name my account ${randomSuffix}
click ActivityItemForm_Contact_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent ContactsSearchForm_anyMixedAttributes
type ContactsSearchForm_anyMixedAttributes Jinny Jane ${randomSuffix}
keyUp ContactsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a Jinny Jane ${randomSuffix}
verifyTextPresent Jinny Jane ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue ActivityItemForm_Contact_name Jinny Jane ${randomSuffix}
click ActivityItemForm_Opportunity_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent OpportunitiesSearchForm_anyMixedAttributes
type OpportunitiesSearchForm_anyMixedAttributes Test Opportunity ${randomSuffix}
keyUp OpportunitiesSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a Test Opportunity ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue ActivityItemForm_Opportunity_name Test Opportunity ${randomSuffix}
click Note_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
waitForValue Note_owner_name Sam Smith
click Note_explicitReadWriteModelPermissions_type_2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent This is an Inline New Note ${randomSuffix} for account without more options
assertText link=This is an Inline New Note ${randomSuffix} for account without more options This is an Inline New Note ${randomSuffix} for account without more options
clickAndWait link=This is an Inline New Note ${randomSuffix} for account without more options
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent This is an Inline New Note ${randomSuffix} for account without more options
waitForTextPresent Everyone
clickAndWait //div[@id='NoteEditAndDetailsView']/div/div/div/ul/li/ul/li/a
waitForConfirmation Are you sure you want to delete this note?
chooseOkOnNextConfirmation
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent my account ${randomSuffix}
type Note_description This is an Inline Note ${randomSuffix} for account with more options
assertText link=More Options More Options
click link=More Options
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click Note_occurredOnDateTime
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Hour
click //div[@id='ui-datepicker-div']/div[1]/a[2]/span
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='ui-datepicker-div']/table/tbody/tr[2]/td[3]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='ui-datepicker-div']/div[3]/button[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyValue ActivityItemForm_Account_name my account ${randomSuffix}
click ActivityItemForm_Contact_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent ContactsSearchForm_anyMixedAttributes
type ContactsSearchForm_anyMixedAttributes Jinny Jane ${randomSuffix}
keyUp ContactsSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a Jinny Jane ${randomSuffix}
verifyTextPresent Jinny Jane ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a
waitForValue ActivityItemForm_Contact_name Jinny Jane ${randomSuffix}
click ActivityItemForm_Opportunity_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent OpportunitiesSearchForm_anyMixedAttributes
type OpportunitiesSearchForm_anyMixedAttributes Test Opportunity ${randomSuffix}
keyUp OpportunitiesSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a Test Opportunity ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a
waitForValue ActivityItemForm_Opportunity_name Test Opportunity ${randomSuffix}
click Note_explicitReadWriteModelPermissions_type_2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type AccountsSearchForm_anyMixedAttributes my account ${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 my account ${randomSuffix}
assertText link=my account ${randomSuffix} my account ${randomSuffix}
clickAndWait link=my account ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent This is an Inline Note ${randomSuffix} for account with more options
assertText link=This is an Inline Note ${randomSuffix} for account with more options This is an Inline Note ${randomSuffix} for account with more options
clickAndWait link=This is an Inline Note ${randomSuffix} for account with more options
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='NoteEditAndDetailsView']/div/div[2]/div/table/tbody/tr[1]/td This is an Inline Note ${randomSuffix} for account with more options
verifyTextPresent my account ${randomSuffix}
verifyTextPresent Everyone
verifyTextPresent Super User
setSpeed 3000
assertText link=Edit Edit
clickAndWait link=Edit
setSpeed 0
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent This is an Inline Note ${randomSuffix} for account with more options
type Note_description This is an Inline New Note ${randomSuffix} for account with more options
click Note_explicitReadWriteModelPermissions_type_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent This is an Inline New Note ${randomSuffix} for account with more options
assertText link=This is an Inline New Note ${randomSuffix} for account with more options This is an Inline New Note ${randomSuffix} for account with more options
clickAndWait link=This is an Inline New Note ${randomSuffix} for account with more options
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent This is an Inline New Note ${randomSuffix} for account with more options
waitForTextPresent Owner
setSpeed 3000
assertText link=Delete Delete
clickAndWait link=Delete
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForConfirmation Are you sure you want to delete this note?
chooseOkOnNextConfirmation
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent my account ${randomSuffix}
setSpeed 0