Test_SNF_ECMS_15_FCCPortlet_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo -- Log in
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Add action for view
clickAndWait //a[@href='/ecmdemo/private/acme/wcmAdmin']
echo --  Content Presentation
waitForElementPresent //div[contains(text(),'Content Presentation')]
click //div[contains(text(),'Content Presentation')]
echo --  Manage View
waitForElementPresent link=Manage View
click link=Manage View
waitForElementPresent link=2
click link=2
pause 3000
echo -- Choose wcm-view
waitForElementPresent //div[@id='UIViewList']//img[contains(@onclick,"wcm-view") and @title="Edit"]
click //div[@id='UIViewList']//img[contains(@onclick,"wcm-view") and @title="Edit"]
echo -- Publication
waitForElementPresent link=Publication
click link=Publication
echo -- Check Manage Action
waitForElementPresent manageActions
check manageActions
echo save1
waitForElementPresent link=Save
click link=Save
pause 3000
echo --  Save2
waitForElementPresent link=Save
click link=Save
pause 3000
waitForElementPresent //a[@href='/ecmdemo/private/acme/siteExplorer']
clickAndWait //a[@href='/ecmdemo/private/acme/siteExplorer']
echo -- Browse all drives
waitForElementPresent //div[@title='Show Drives']
click //div[@title='Show Drives']
echo -- Sites Management
waitForElementPresent link=Sites Management
click link=Sites Management
echo -- acme
waitForElementPresent //a[@title='acme ']
click //a[@title='acme ']
echo -- acme/documents
waitForElementPresent link=documents
click link=documents
echo --  Manage Actions
waitForElementPresent link=Manage Actions
click link=Manage Actions
echo --  Add Action tab
waitForElementPresent //div[text()='Add Action']
click //div[text()='Add Action']
pause 5000
waitForElementPresent actionType
select actionType label=exo:sendMailAction
type actionName Test_SNF_ECMS_15
addSelection lifecycle label=User Action
waitForElementPresent to
type to Test_SNF_ECMS_15@gmail.com
click link=Save
pause 10000
waitForElementPresent link=Close
click link=Close
pause 10000
echo -- Create new configuration
clickAndWait link=Overview
clickAndWait //a[text()='Contact Us']
echo --  Edit Contact Us page
waitForElementPresent link=Edit Page
click link=Edit Page
waitForElementPresent //a[@title='Edit Portlet']
mouseOver //a[@title='Edit Portlet']
click //a[@title='Edit Portlet']
pause 10000
waitForElementPresent UIFCCMessageFormTextareaInput
type UIFCCMessageFormTextareaInput Test_SNF_ECMS_15_FCCPortlet_ecmdemo
waitForElementPresent link=Save
click link=Save
pause 10000
echo -- OK
waitForElementPresent //div[@id='UIFCCPortlet']//a[text()="OK"]
click //div[@id='UIFCCPortlet']//a[text()="OK"]
echo -- Close
waitForElementPresent Close
click Close
echo -- Close
waitForElementPresent //a[@title='Finish']
click //a[@title='Finish']
pause 10000
echo -- Create new document using new configuration
waitForElementPresent your_nameFieldName
type your_nameFieldName Test_SNF_ECMS_15
type your_addressFieldName Test_SNF_ECMS_15
type your_email_addressFieldName Test_SNF_ECMS_15
type your_phone_numberFieldName Test_SNF_ECMS_15
type your_messageFieldName Test_SNF_ECMS_15
waitForElementPresent link=Send
click link=Send
pause 3000
echo -- Delete action
waitForElementPresent //a[@href='/ecmdemo/public/acme/siteExplorer']
clickAndWait //a[@href='/ecmdemo/public/acme/siteExplorer']
waitForElementPresent link=Manage Actions
click link=Manage Actions
waitForElementPresent //img[@title='Delete']
click //img[@title='Delete']
assertConfirmation Do yo really want to delete this action?
waitForElementPresent link=Close
click link=Close
echo -- Refresh to file display
waitForElementPresent //a[@title='Refresh']
click //a[@title='Refresh']
echo -- Refresh to file display
pause 10000
waitForElementPresent //div[@id='UIJCRExplorerPortlet']//a[text()="OK"]
click //div[@id='UIJCRExplorerPortlet']//a[text()="OK"]
pause 10000
echo -- Delete created document
waitForElementPresent //div[4]/div[2]/div[1]/div/div/div[2]/a
click //div[4]/div[2]/div[1]/div/div/div[2]/a
echo --  Verify Result
waitForTextPresent Test_SNF_ECMS_15
verifyTextPresent Test_SNF_ECMS_15
verifyTextPresent Test_SNF_ECMS_15
verifyTextPresent Test_SNF_ECMS_15
mouseDownRight //div[4]/div[2]/div[1]/div/div/div[2]/a
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()='OK']
click //div[@id='UIPopupWindow']//a[text()='OK']
pause 10000
echo -- Log out
waitForElementPresent link=Sign out
clickAndWait link=Sign out