Create Edit Delete Meetings For Leads
setTimeout 45000
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type LeadsSearchForm_anyMixedAttributes Sally ${randomSuffix}
keyUp LeadsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Silly Sally ${randomSuffix}
assertText link=Silly Sally ${randomSuffix} Silly Sally ${randomSuffix}
clickAndWait link=Silly Sally ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Silly Sally ${randomSuffix}
clickAndWait //div[@id='LeadDetailsAndRelationsView']/div[2]/div/ul[2]/li[1]/div[1]/div/div/div/a
waitForTextPresent Create Meeting
type Meeting_name Project kick-off lead ${randomSuffix}
type Meeting_location Telephone
click Meeting_startDateTime
waitForTextPresent Hour
click //div[@id='ui-datepicker-div']/div[1]/a[2]/span
click //div[@id='ui-datepicker-div']/table/tbody/tr[2]/td[3]/a
click //div[@id='ui-datepicker-div']/div[3]/button[2]
click Meeting_endDateTime
waitForTextPresent Hour
click //div[@id='ui-datepicker-div']/div[1]/a[2]/span
click //div[@id='ui-datepicker-div']/table/tbody/tr[3]/td[3]/a
click //div[@id='ui-datepicker-div']/div[3]/button[2]
select Meeting_category_value label=Call
click ActivityItemForm_Account_SelectLink
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent AccountsSearchForm_anyMixedAttributes
type AccountsSearchForm_anyMixedAttributes my account ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a my account ${randomSuffix}
verifyTextPresent my account ${randomSuffix}
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr/td[1]/a
waitForValue ActivityItemForm_Account_name my account ${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
waitForValue ActivityItemForm_Opportunity_name Test Opportunity ${randomSuffix}
type Meeting_description This is a test Meeting
click Meeting_owner_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent UsersSearchForm_anyMixedAttributes
type UsersSearchForm_anyMixedAttributes Sam Smith
keyUp UsersSearchForm_anyMixedAttributes \10
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 Meeting_owner_name Sam Smith
click Meeting_explicitReadWriteModelPermissions_type_2
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Silly Sally ${randomSuffix}
click //div[@id='UpcomingMeetingsForContactCalendarView']/div/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForContactCalendarView']/div/div/table/tbody/tr[2]/td[3]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off lead ${randomSuffix}
clickAndWait //div[@id='days-meetings-list-view']/div[2]/table/tbody/tr/td/div/div/h3/span/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off lead ${randomSuffix}
verifyValue Meeting_location Telephone
verifyTextPresent Call
verifyTextPresent Silly Sally ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
verifyTextPresent Everyone
verifyTextPresent This is a test Meeting
type Meeting_name Project kick-off new lead ${randomSuffix}
click Meeting_explicitReadWriteModelPermissions_type_0
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Silly Sally ${randomSuffix}
click //div[@id='UpcomingMeetingsForContactCalendarView']/div/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForContactCalendarView']/div/div/table/tbody/tr[2]/td[3]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off new lead ${randomSuffix}
clickAndWait //div[@id='days-meetings-list-view']/div[2]/table/tbody/tr/td/div/div/h3/span/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Project kick-off new lead ${randomSuffix}
verifyTextPresent Owner
setSpeed 3000
assertText link=Delete Delete
clickAndWait link=Delete
waitForConfirmation Are you sure you want to delete this meeting?
waitForPageToLoad
setSpeed 0
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type LeadsSearchForm_anyMixedAttributes Sally ${randomSuffix}
keyUp LeadsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Silly Sally ${randomSuffix}
assertText link=Silly Sally ${randomSuffix} Silly Sally ${randomSuffix}
clickAndWait link=Silly Sally ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Silly Sally ${randomSuffix}
click //div[@id='UpcomingMeetingsForContactCalendarView']/div/div/div/a[2]/span
click //div[@id='UpcomingMeetingsForContactCalendarView']/div/div/table/tbody/tr[2]/td[3]/a
verifyTextNotPresent Project kick-off new lead ${randomSuffix}