Create Account
setTimeout 45000
open index.php/workflows/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=WorkflowsSearchForm_anyMixedAttributes WorkflowTest ${randomSuffix}
keyUp id=WorkflowsSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-view']/table/tbody/tr[1]/td[2]/a WorkflowTest ${randomSuffix}
verifyTextPresent WorkflowTest ${randomSuffix}
verifyValue WorkflowsSearchForm_anyMixedAttributes WorkflowTest ${randomSuffix}
click //div[@id='list-view']/table/tbody/tr[1]/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='WorkflowDetailsView']/div/div[2]/table/tbody/tr[1]/td WorkflowTest ${randomSuffix}
clickAndWait link=Edit
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='moduleNextLink']/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='triggersNextLink']/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='actionsNextLink']/span[3]
click //a[@id='triggersNextLink']/span[3]
waitForPageToLoad
select id=addRecipientType_0 label=All users in a specific role
click //select[@id='addRecipientType_0']/option[4]
click //a[@id='emailMessagesNextLink']/span[3]
click //a[@id='triggersNextLink']/span[3]
waitForPageToLoad
type id=OnSaveWorkflowWizardForm_name WorkflowTestEdit ${randomSuffix}
click //a[@id='generalDataSaveAndRunLink']/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='WorkflowDetailsView']/div/h1/span/span WorkflowTestEdit ${randomSuffix}