Test_SNF_PRL_63_ManagePageOfUser
open /portal/public/classic/
windowMaximize
echo -- Manage page of group --
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
echo -- Go to Manage page --
clickAndWait link=Pages Manager
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"]
waitForElementPresent link=Save
click link=Save
echo -- Search page --
waitForElementPresent pageTitle
type pageTitle Test_SNF_PRL_63
waitForElementPresent //form[@id='UIPageSearchForm']/div[2]/a
click //form[@id='UIPageSearchForm']/div[2]/a
echo -- Edit page --
waitForElementPresent //img[@title='Edit Page']
click //img[@title='Edit Page']
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[@title='Delete Page']
click //img[@title='Delete Page']
waitForConfirmationPresent
assertConfirmation Do you want to delete this page?
waitForTextPresent No result found.
verifyTextPresent No result found.
waitForElementPresent //div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
waitForTextNotPresent Test_SNF_PRL_63
waitForTextNotPresent Test_SNF_PRL_63
waitForElementPresent link=Sign out
clickAndWait link=Sign out
verifyText //form[@id='UIPageSearchForm']/div[2]/a