Test_SNF_PRL_54_AddNewpageForUser
open /portal/public/intranet/
echo -- Add new page for user --
windowMaximize
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo --Dashboard
waitForElementPresent link=Dashboard
clickAndWait link=Dashboard
echo -- Click Add new page on Dashboard editor menu--
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent pageName
type pageName Test_SNF_PRL_54
type pageDisplayName Test_SNF_PRL_54
echo -- Click Next to move step 2--
waitForElementPresent //a[@title='Step 2']
click //a[@title='Step 2']
echo -- Keep empty layout and click Next move step 3--
waitForElementPresent //a[@title='Step 3']
click //a[@title='Step 3']
echo -- Click Finish --
waitForElementPresent //div[@id='UIPageEditor']//a[@title='Finish']
clickAndWait //div[@id='UIPageEditor']//a[@title='Finish']
waitForLocation */portal/private/intranet/Test_SNF_PRL_54
assertLocation */portal/private/intranet/Test_SNF_PRL_54
echo -- Go to Page Management --
waitForElementPresent link=Manage Pages
clickAndWait link=Manage Pages
pause 10000
type searchTerm Test_SNF_PRL_54
select searchOption label=Title
click //a[@title='Quick Search']
echo --Delete page
waitForElementPresent //td/div[@title='Test_SNF_PRL_54']/following::img[@title='Delete Page']
click //td/div[@title='Test_SNF_PRL_54']/following::img[@title='Delete Page']
waitForConfirmationPresent
assertConfirmation Do you want to delete this page?
waitForTextPresent No result found.
verifyTextPresent No result found.
click //div[contains(@onclick,'componentId=_')]//a[text()='OK']
waitForTextNotPresent Test_SNF_PRL_54
verifyTextNotPresent Test_SNF_PRL_54
echo --Logout
waitForElementPresent link=Logout
clickAndWait link=Logout