Create Account
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php/workflows/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //ul[@id='MashableInboxCreateDropdown']/li/a/span
clickAndWait //ul[@id='MashableInboxCreateDropdown']/li/ul/li/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='WorkflowWizardTypeView']/h1/span/span Workflow Wizard
clickAndWait //div[@id='WorkflowWizardTypeView']/ul/li[1]/a/span
waitForText //div[@id='OnSaveWorkflowWizardView']/div/h1/span/span Workflow Wizard - On-Save
click //div[@id='ModuleForWorkflowWizardView']/table/tbody/tr/td/div/input
click //a[@id='moduleNextLink']/span[3]
waitForText //div[@id='TriggersTreeArea']/div/ul/li[1]/span Account
doubleClick //div[@id='TriggersTreeArea']/div/ul/li[1]/ul/li[1]/span
waitForText //div[@id='TriggersForWorkflowWizardView']/div[2]/div[1]/div[1]/ul/li/div/div/div[1] Annual Revenue
type id=OnSaveWorkflowWizardForm_Triggers_0_value 200000
select id=OnSaveWorkflowWizardForm_Triggers_0_operator label=Less Than
click //select[@id='OnSaveWorkflowWizardForm_Triggers_0_operator']/option[8]
click //a[@id='triggersNextLink']/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='ActionsForWorkflowWizardView']/h3 Select Actions
select //div[@id='ActionsForWorkflowWizardView']/div/div/div/select label=Create
click //select[@id='actionType']/option[4]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select //div[@id='action-type-related-model-selector']/div/select label=Accounts
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=OnSaveWorkflowWizardForm_Actions_0_ActionAttributes_name_value test
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
focus id=OnSaveWorkflowWizardForm_Actions_0_ActionAttributes_owner__User_stringifiedModelForValue
click //a[@id='OnSaveWorkflowWizardForm_Actions_0_ActionAttributes_owner__User_users_SelectLink']/span[2]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=UsersSearchForm_anyMixedAttributes Sally Smith
keyUp id=UsersSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-viewmodal']/table/tbody/tr/td/a Sally Smith
verifyTextPresent Sally Smith
verifyValue UsersSearchForm_anyMixedAttributes Sally Smith
click //div[@id='list-viewmodal']/table/tbody/tr/td/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='saveAction0']/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='actionsNextLink']/span[3]
waitForText //div[@id='EmailMessagesForWorkflowWizardView']/h3 Select Messages
click //a[@id='AddEmailMessageLink']/span[3]
waitForElementPresent //div[@id='EmailMessagesForWorkflowWizardView']/div[1]/div[3]/div/ul/li/div/div[2]/div[1]/div/table/tbody/tr[1]/th/label
select id=addRecipientType_0 label=A person associated with the triggered record
click //select[@id='addRecipientType_0']/option[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='emailMessagesNextLink']/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='GeneralDataForWorkflowWizardView']/h3 Save Workflow
type OnSaveWorkflowWizardForm_name WorkflowTest ${randomSuffix}
click //a[@id='generalDataSaveAndRunLink']/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='WorkflowDetailsView']/div/div[2]/table/tbody/tr[1]/td WorkflowTest