Test_SNF_PRL_63_ManagePageOfUser
open /portal/public/intranet/
windowMaximize
echo -- Manage page of group --
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to Manage page --
waitForElementPresent link=Manage Pages
clickAndWait link=Manage Pages
pause 30000
waitForElementPresent //div[@id='UIPageBrowser']//a[text()="Add New Page"]
click //div[@id='UIPageBrowser']//a[text()="Add New Page"]
waitForElementPresent ownerType
select ownerType label=user
waitForElementPresent name
type name Test_SNF_PRL_63
waitForElementPresent title
type title Test_SNF_PRL_63
echo -- Choose Page Layout --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()="Page Layout"]
click //div[@id='UIMaskWorkspace']//div[text()="Page Layout"]
waitForTextPresent Empty Layout
verifyTextPresent Empty Layout
waitForElementPresent link=Save
click link=Save
pause 30000
echo -- Edit page --
waitForElementPresent //img[contains(@onclick,"Test_SNF_PRL_63")]
click //img[contains(@onclick,"Test_SNF_PRL_63")]
waitForElementPresent link=View Page properties
click link=View Page properties
waitForElementPresent title
type title Test_SNF_PRL_63_edit
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForTextPresent Test_SNF_PRL_63_edit
verifyTextPresent Test_SNF_PRL_63_edit
echo -- Delete page --
waitForElementPresent //img[contains(@onclick,"Test_SNF_PRL_63") and @title="Delete Page"]
click //img[contains(@onclick,"Test_SNF_PRL_63") and @title="Delete Page"]
waitForConfirmationPresent
assertConfirmation Do you want to delete this page?
waitForTextNotPresent Test_SNF_PRL_63
verifyTextNotPresent Test_SNF_PRL_63
waitForElementPresent link=Logout
clickAndWait link=Logout