Test_POR_20_017_CreateNewPageForUserWithValidValues
open /portal/public/classic/
echo --Go to Page Management--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait xpath=//div[@id='UIPortalLoginFormAction']/div/div/div
echo --Select Page Mangement on menu item--
waitForElementPresent link=Page Management
click link=Page Management
echo --Add new page for user--
waitForElementPresent xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a
click xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a
waitForElementPresent name
type name Test_POR_20_017
type title Test_POR_20_017
echo -- Choose Page Layout --
waitForElementPresent //div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent link=Save
click link=Save
waitForTextNotPresent Page Setting
echo --Search new page created--
waitForElementPresent searchTerm
type searchTerm Test_POR_20_017
waitForElementPresent searchOption
select searchOption label=Title
waitForElementPresent xpath=//form[@id='UIPageSearch']/div[2]/a
click xpath=//form[@id='UIPageSearch']/div[2]/a
echo --Delete page of user--
waitForElementPresent xpath=//img[@title='Delete Page']
click xpath=//img[@title='Delete Page']
assertConfirmation Do you want to delete this page?
waitForElementPresent xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a
click xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a
waitForElementPresent link=Sign out
clickAndWait link=Sign out