CreateContentStructure20
store [enter test account name here] username
store [enter test account password here] password
store /Members/test/folder_contents homefolder_url
store [enter test target email address here] targetemail
store [enter test supporter email address here] supporteremail
store [enter test thank-you from - email address here] thankyouemailfrom
open /login_form
type __ac_name ${username}
type __ac_password ${password}
clickAndWait submit
open ${homefolder_url}
click //li[2]/div/a/span
clickAndWait link=Campaign Action
type id a-test-action
type name Test action created by test script
type title A test action
type description This is the test action created by automated test script. It should be fully populated and deleted after testing.
clickAndWait form_submit
click //li[2]/div/a/span
clickAndWait link=Action Message
type text This is the HTML action message template
type title Test Action Message Template
type messagetitle Test action message subject
clickAndWait form_submit
clickAndWait link=A test action
clickAndWait link=Contents
click //li[2]/div/a/span
clickAndWait link=Target Person
type givenname Test
type familyname Account
type emailaddress ${targetemail}
type description test target that targets test
clickAndWait form_submit
clickAndWait link=A test action
click //li[2]/div/a/span
clickAndWait link=Thank You Page
type text This is a HTML message to thank you for taking action!
type title Test thank-you page template
type messagetitle Thank you for taking action!
clickAndWait form_submit
clickAndWait link=A test action
click //li[2]/div/a/span
clickAndWait link=Thank You Email
type text This is a HTML message sent to you via email to thank you for taking action!
type title The test thank-you email template
type messagetitle Thank you for taking action!
clickAndWait form_submit
clickAndWait link=A test action
click //li[2]/div/a/span
clickAndWait link=e-Petition
type name Test e-Petition created by test script
type title Take the action!
type description This is a test e-Petition created by the automatic test script.
clickAndWait form_next
click //input[@value='Browse...']
waitForPopUp referencebrowser_popup 30000
selectWindow referencebrowser_popup
clickAndWait //a[4]/span[1]
click //a[1]/strong
click //div[4]/a[2]
selectWindow null
click //div[@id="archetypes-fieldname-parentaction"]/div[3]/div/input
waitForPopUp referencebrowser_popup 30000
selectWindow referencebrowser_popup
clickAndWait //a[3]/span[1]
click //td[3]/a[1]/strong
selectWindow null
click //div[@id='archetypes-fieldname-messagetemplate']/div[3]/div/input
waitForPopUp referencebrowser_popup 30000
selectWindow referencebrowser_popup
clickAndWait //a[4]/span[1]
click //a[1]/strong
selectWindow null
clickAndWait form_next
type thankyouemailname test system
type thankyouemailfrom ${thankyouemailfrom}
click //input[@value='Browse...']
waitForPopUp referencebrowser_popup 30000
selectWindow referencebrowser_popup
clickAndWait //a[4]/span[1]
click //a[1]/strong
selectWindow null
click //div[@id='archetypes-fieldname-thankyoupage']/div[3]/div/input
waitForPopUp referencebrowser_popup 30000
selectWindow referencebrowser_popup
clickAndWait //a[4]/span[1]
click //a[1]/strong
selectWindow null
clickAndWait form_submit
clickAndWait link=take action
type givenname Test
type familyname Account
type emailaddress ${supporteremail}
select country label=United Kingdom
click receive_updates
clickAndWait form_submit
verifyTextPresent This is a HTML message to thank you for taking action!
selectWindow null
clickAndWait link=test's Home
clickAndWait link=Contents
click cb_a-test-action
clickAndWait folder_delete:method
clickAndWait link=Log out