Test_SNF_ECMS_02_CreateCLVPageByFolder_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 -- Create CLV page
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
click //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
pause 2000
waitForElementPresent pageName
type pageName ASnfEcms02
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
pause 2000
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent link=Contents
click link=Contents
waitForElementPresent //div[@id='Contents/ContentListViewerPortlet']
dragAndDropToObject //div[@id='Contents/ContentListViewerPortlet'] //div[@id='UIPagePreview']/div[@class='UIPage']//div[@class='UIComponentBlock']
waitForElementPresent //div[@id='UIPage']
mouseOver //div[@id='UIPage']
waitForElementPresent //div[@id='UIApplicationList']/div/div[1]/div/div/div/div/div[2]/div
click //div[@id='UIApplicationList']/div/div[1]/div/div/div/div/div[2]/div
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[1]
mouseOver //div/div/div[2]/div/div/div/div/div/div/a[1]
click //div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent //img[@alt='Select folder path']
click //img[@alt='Select folder path']
echo -- Select folder
waitForElementPresent GeneralDrives_
click GeneralDrives_
waitForElementPresent GeneralDrives_ManagedSites_
click GeneralDrives_ManagedSites_
waitForElementPresent GeneralDrives_ManagedSites__acme
click GeneralDrives_ManagedSites__acme
waitForElementPresent //tr[5]/td/a
click //tr[5]/td/a
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div/div/div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div/div/div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
waitForElementPresent link=Close
click link=Close
echo Go to "ASnfEcms02" pages
waitForElementPresent //a[@onclick='eXo.core.DOMUtil.disableOnClick(this);']
clickAndWait //a[@onclick='eXo.core.DOMUtil.disableOnClick(this);']
pause 3000
echo Content list
waitForElementPresent link=Where we are
verifyElementPresent link=Where we are
waitForElementPresent link=Conditions and Requirements
verifyElementPresent link=Conditions and Requirements
waitForElementPresent link=How to join us
verifyElementPresent link=How to join us
echo -- Search and delete page
waitForElementPresent //a[contains(text(),'Page Management')]
clickAndWait //a[contains(text(),'Page Management')]
pause 5000
waitForElementPresent searchTerm
type searchTerm ASnfEcms02
select searchOption label=Title
waitForElementPresent //form[@id='UIPageSearch']/div[2]/a
click //form[@id='UIPageSearch']/div[2]/a
pause 10000
waitForElementPresent //img[@title='Delete Page']
click //img[@title='Delete Page']
assertConfirmation Do you want to delete this page?
waitForElementPresent //div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
click //div[4]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
echo -- Delete node
waitForElementPresent link=Site
clickAndWait link=Site
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[13]/div//a
mouseDownRight //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[13]/div//a
click link=Delete Node
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent //div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[2]/div/div/div/div
click //div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[2]/div/div/div/div
pause 3000
echo -- Log out
waitForElementPresent link=Sign out
clickAndWait link=Sign out