| 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']/div/div/div/a |
|
| echo |
-- Click Add new page on Site editor menu-- |
|
| waitForElementPresent |
link=Add New Page |
|
| click |
link=Add New Page |
|
| waitForElementPresent |
//div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a |
|
| click |
//div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a |
|
| waitForElementPresent |
pageName |
|
| type |
pageName |
Test_SNF_PRL_29 |
| type |
pageDisplayName |
Test_SNF_PRL_29 |
| echo |
-- Click Next to move step 2-- |
|
| waitForElementPresent |
//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div |
|
| click |
//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div |
|
| echo |
-- Keep empty layout and click Next move step 3-- |
|
| waitForElementPresent |
//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div |
|
| click |
//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div |
|
| echo |
-- Click Finish -- |
|
| waitForElementPresent |
//div[@id='UIPageEditor']/div[1]/div/div/div/a[2] |
|
| clickAndWait |
//div[@id='UIPageEditor']/div[1]/div/div/div/a[2] |
|
| assertLocation |
http://localhost:8080/portal/private/classic/Test_SNF_PRL_29 |
|
| echo |
-- Go to Edit Navigation -- |
|
| waitForElementPresent |
link=Site |
|
| clickAndWait |
link=Site |
|
| waitForElementPresent |
//div[@id='UISiteManagement']//a[contains(@href,"objectId=classic") and text()="Edit Navigation"] |
|
| click |
//div[@id='UISiteManagement']//a[contains(@href,"objectId=classic") and 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 -- |
|
| clickAndWait |
link=Page Management |
|
| waitForElementPresent |
searchTerm |
|
| type |
searchTerm |
Test_SNF_PRL_29 |
| waitForElementPresent |
searchOption |
|
| select |
searchOption |
label=Title |
| waitForElementPresent |
//form[@id='UIPageSearch']//a[@title='Quick Search'] |
|
| click |
//form[@id='UIPageSearch']//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[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_29 |
|
| verifyTextNotPresent |
Test_SNF_PRL_29 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|