Create Edit Delete Tasks 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='LeadsListView']/div/table/tbody/tr/td[2]/a Silly Sally ${randomSuffix}
verifyTextPresent Silly Sally ${randomSuffix}
clickAndWait link=Silly Sally ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Silly Sally ${randomSuffix}
clickAndWait //div[contains(@class, 'OpenTasksForContactRelatedListView')]/div[1]/div/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Task
type Task_name Task kick-off lead ${randomSuffix}
click Task_dueDateTime
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
click ActivityItemForm_Account_SelectLink
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']/table/tbody/tr/td[1]/a my account ${randomSuffix}
verifyTextPresent my account ${randomSuffix}
click //div[@id='list-viewmodal']/table/tbody/tr/td[1]/a
waitForValue ActivityItemForm_Account_name my account ${randomSuffix}
verifyValue ActivityItemForm_Contact_name Silly Sally ${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']/table/tbody/tr/td[1]/a Test Opportunity ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
click //div[@id='list-viewmodal']/table/tbody/tr/td[1]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue ActivityItemForm_Opportunity_name Test Opportunity ${randomSuffix}
type Task_description This is a test Task
click Task_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 Task_owner_name Sam Smith
click Task_explicitReadWriteModelPermissions_type_2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Task kick-off lead ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Task kick-off lead ${randomSuffix}
verifyTextPresent my account ${randomSuffix}
verifyTextPresent Test Opportunity ${randomSuffix}
verifyTextPresent Silly Sally ${randomSuffix}
verifyTextPresent Everyone
verifyTextPresent This is a test Task
clickAndWait link=Edit
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Task_name Task kick-off new lead ${randomSuffix}
click Task_completed
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click Task_completedDateTime
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[3]/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
click Task_explicitReadWriteModelPermissions_type_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Task kick-off new lead ${randomSuffix}
assertNotEditable Task_completed
verifyValue Task_completed on
verifyTextPresent Owner
clickAndWait link=Delete
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForConfirmation Are you sure you want to delete this task?
chooseOkOnNextConfirmation
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type LeadsSearchForm_anyMixedAttributes Silly Sally ${randomSuffix}
keyUp LeadsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Silly Sally ${randomSuffix}
verifyTextPresent Silly Sally ${randomSuffix}
clickAndWait link=Silly Sally ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Silly Sally ${randomSuffix}
clickAndWait link=Task kick-off new lead ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent An error has occurred. Please click here to continue to the home page. If the error persists please contact your administrator.