open |
/portal/public/classic/ |
|
echo |
-- Add new page for portal -- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction'] |
|
echo |
-- Click Add new page on Site editor menu-- |
|
waitForElementPresent |
link=Add New Page |
|
click |
link=Add New Page |
|
waitForElementPresent |
//a[@title='Up Level'] |
|
click |
//a[@title='Up Level'] |
|
waitForElementPresent |
pageName |
|
type |
pageName |
Test_SNF_PRL_29 |
type |
i18nizedLabel |
Test_SNF_PRL_29 |
echo |
-- Click Next to move step 2-- |
|
waitForElementPresent |
//div[contains(text(),'Next')] |
|
click |
//div[contains(text(),'Next')] |
|
echo |
-- Keep empty layout and click Next move step 3-- |
|
waitForElementPresent |
//div[contains(text(),'Next')] |
|
click |
//div[contains(text(),'Next')] |
|
echo |
-- Click Finish -- |
|
waitForElementPresent |
//a[@title='Finish'] |
|
clickAndWait |
//a[@title='Finish'] |
|
open |
http://localhost:8080/portal/classic/Test_SNF_PRL_29 |
|
echo |
-- Go to Edit Navigation -- |
|
waitForElementPresent |
link=Site |
|
clickAndWait |
link=Site |
|
waitForElementPresent |
//a[contains(@href,'classic') and contains(text(),'Edit Navigation')] |
|
click |
//a[contains(@href,'classic') and contains(text(),'Edit Navigation')] |
|
echo |
-- Delete node -- |
|
waitForElementPresent |
//div[@id='UINavigationNodeSelector']//a[@title="Test_SNF_PRL_29"] |
|
click |
//div[@id='UINavigationNodeSelector']//a[@title="Test_SNF_PRL_29"] |
|
waitForElementPresent |
//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_29'] |
|
mouseDownRight |
//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_29'] |
|
waitForElementPresent |
link=Delete Node |
|
click |
link=Delete Node |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Are you sure you want to delete this node? |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Go to Page Management -- |
|
waitForElementPresent |
link=Page Management |
|
clickAndWait |
link=Page Management |
|
waitForElementPresent |
pageTitle |
|
type |
pageTitle |
Test_SNF_PRL_29 |
waitForElementPresent |
//a[@title='Quick Search'] |
|
click |
//a[@title='Quick Search'] |
|
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[contains(@onclick,"action=Close")] |
|
click |
//div[contains(@onclick,"action=Close")] |
|
waitForTextNotPresent |
Test_SNF_PRL_29 |
|
verifyTextNotPresent |
Test_SNF_PRL_29 |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|