open |
/portal/public/classic |
|
echo |
-- Change container when edit page properties of node-- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction'] |
|
echo |
--Add new node for group -- |
|
clickAndWait |
link=Group |
|
waitForElementPresent |
link=Edit Navigation |
|
click |
link=Edit Navigation |
|
waitForElementPresent |
link=Add Node |
|
click |
link=Add Node |
|
waitForElementPresent |
name |
|
type |
name |
Test_SNF_PRL_48 |
type |
label |
Test_SNF_PRL_48 |
echo |
-- Page Selector-- |
|
waitForElementPresent |
//div[text()='Page Selector'] |
|
click |
//div[text()='Page Selector'] |
|
echo |
-- Select a page for ndoe-- |
|
waitForElementPresent |
link=Search and Select Page |
|
click |
link=Search and Select Page |
|
type |
//input[@id='pageTitle' and @value='Register'] |
Register |
select |
name=searchOption |
label=portal |
waitForElementPresent |
//a[@title='Quick Search'] |
|
click |
//a[@title='Quick Search'] |
|
waitForElementPresent |
//img[@title='Select Page'] |
|
click |
//img[@title='Select Page'] |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Save to finish create new node-- |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- View new node-- |
|
waitForElementPresent |
link=Test_SNF_PRL_48 |
|
clickAndWait |
link=Test_SNF_PRL_48 |
|
waitForTextPresent |
Test_SNF_PRL_48 |
|
verifyTextPresent |
Test_SNF_PRL_48 |
|
echo |
-- Right click and choose Edit node's page - |
|
waitForElementPresent |
link=Group |
|
clickAndWait |
link=Group |
|
waitForElementPresent |
link=Edit Navigation |
|
click |
link=Edit Navigation |
|
waitForElementPresent |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
click |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
waitForElementPresent |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
mouseDownRight |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
pause |
1000 |
|
waitForElementPresent |
link=Edit Node's Page |
|
click |
link=Edit Node's Page |
|
echo |
-- View layout of page before Change container in page-- |
|
waitForElementPresent |
link=Switch View mode |
|
click |
link=Switch View mode |
|
waitForElementPresent |
//div[@class="PortletIcon PortletIcon"] |
|
verifyElementPresent |
//div[@class="PortletIcon PortletIcon"] |
|
waitForElementPresent |
link=Switch View mode |
|
click |
link=Switch View mode |
|
echo |
-- Change container in portal-- |
|
waitForElementPresent |
//div[contains(text(),"Containers")] |
|
click |
//div[contains(text(),"Containers")] |
|
waitForElementPresent |
//div[@id='oneRow']/div |
//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div |
dragAndDropToObject |
//div[@id='oneRow']/div |
//div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div |
waitForElementPresent |
link=Switch View mode |
|
click |
link=Switch View mode |
|
waitForElementPresent |
//div[@class="PortletIcon PortletIcon"] |
|
verifyElementPresent |
//div[@class="PortletIcon PortletIcon"] |
|
waitForElementPresent |
link=Switch View mode |
|
click |
link=Switch View mode |
|
echo |
--Edit container -- |
|
waitForElementPresent |
//div[text()='Container']/following-sibling::a[@title='Edit Container'] |
|
mouseOver |
//div[text()='Container']/following-sibling::a[@title='Edit Container'] |
|
waitForElementPresent |
//div[text()='Container']/following-sibling::a[@title='Edit Container'] |
|
click |
//div[text()='Container']/following-sibling::a[@title='Edit Container'] |
|
waitForElementPresent |
title |
|
type |
title |
Test_SNF_PRL_48 |
waitForElementPresent |
width |
|
type |
width |
300px |
waitForElementPresent |
height |
|
type |
height |
100px |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Move position of container -- |
|
mouseOver |
css=div.DragControlArea |
Test_SNF_PRL_48 |
dragAndDropToObject |
css=div.DragControlArea |
//a[@title='mix'] |
echo |
-- View after change position of container -- |
|
waitForElementPresent |
link=Switch View mode |
|
click |
link=Switch View mode |
|
waitForElementPresent |
//div[@class="PortletIcon PortletIcon"] |
|
verifyElementPresent |
//div[@class="PortletIcon PortletIcon"] |
Test_SNF_PRL_48 |
waitForElementPresent |
link=Switch View mode |
|
click |
link=Switch View mode |
|
echo |
-- Delete container -- |
|
mouseOver |
//div[text()='Test_SNF_PRL_48']/following-sibling::a[@title='Delete Container'] |
|
waitForElementPresent |
//div[text()='Test_SNF_PRL_48']/following-sibling::a[@title='Delete Container'] |
|
click |
//div[text()='Test_SNF_PRL_48']/following-sibling::a[@title='Delete Container'] |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Are you sure you want to delete this Container? |
|
waitForElementPresent |
//div[@id='UIPageEditor']//a[@title="Finish"] |
|
click |
//div[@id='UIPageEditor']//a[@title="Finish"] |
|
echo |
-- Close Navigation Management form -- |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- View node -- |
|
clickAndWait |
link=Test_SNF_PRL_48 |
|
echo |
-- Delete this node-- |
|
waitForElementPresent |
link=Group |
|
clickAndWait |
link=Group |
|
waitForElementPresent |
link=Edit Navigation |
|
click |
link=Edit Navigation |
|
waitForElementPresent |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
click |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
pause |
1000 |
|
waitForElementPresent |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
mouseDownRight |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
waitForElementPresent |
link=Delete Node |
|
click |
link=Delete Node |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Are you sure you want to delete this node? |
|
waitForElementNotPresent |
xpath=//a[@title='Test_SNF_PRL_48'] |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|