Test_POR_14_01_007_CreateNewNodeInTheFirstLevelWhenDoRightClick
open /portal/public/classic
echo - Create new node in the first level when do righ click--
windowMaximize
click link=Sign in
verifyElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Create new node in the first level when do right click--
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[1]/a
mouseDownRight //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[1]/a
waitForElementPresent link=Add new Node
click link=Add new Node
echo --Page Node Setting--
waitForElementPresent name
type name Test_POR_14_01_007
type label Test_POR_14_01_007
echo --Go to Page Selector--
waitForElementPresent //div[@class='UIFormTabPane']//div[@class='TabsContainer']/div[2]/div/div/div/div
click //div[@class='UIFormTabPane']//div[@class='TabsContainer']/div[2]/div/div/div/div
waitForElementPresent link=Search and Select Page
click link=Search and Select Page
waitForElementPresent xpath=//img[@title='Select Page']
click xpath=//img[@title='Select Page']
waitForElementPresent link=Save
click link=Save
echo --View page(node)--
waitForElementPresent link=Test_POR_14_01_007
click link=Test_POR_14_01_007
waitForElementPresent link=Save
click link=Save
echo --Delete node--
waitForElementPresent link=Site
clickAndWait link=Site
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent xpath=//a[@title='Test_POR_14_01_007']
click xpath=//a[@title='Test_POR_14_01_007']
mouseDownRight xpath=//a[@title='Test_POR_14_01_007']
click xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon DeleteNode16x16Icon']
echo -- Show message alert--
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent link=Save
click link=Save
echo --Sign out--
waitForElementPresent link=Sign out
clickAndWait link=Sign out