open |
/portal/public/classic/ |
|
echo |
--Go to Page Management-- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
xpath=//div[@id='UIPortalLoginFormAction']/div/div/div |
|
echo |
--Select Page Mangement on menu item-- |
|
waitForElementPresent |
link=Page Management |
|
click |
link=Page Management |
|
waitForElementPresent |
xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a |
|
click |
xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a |
|
waitForElementPresent |
name |
|
type |
name |
Test_POR_20_013 |
type |
title |
Test_POR_20_013 |
waitForElementPresent |
xpath=//div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPageForm', 'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"] |
|
click |
xpath=//div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPageForm', 'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"] |
|
click |
link=Save |
|
echo |
-- Add new page with same name |
|
waitForElementPresent |
xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a |
|
click |
xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a |
|
waitForElementPresent |
name |
|
type |
name |
Test_POR_20_013 |
type |
title |
Test_POR_20_013 |
waitForElementPresent |
xpath=//div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPageForm', 'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"] |
|
click |
xpath=//div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPageForm', 'UIPageTemplateOptions');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=UIPageTemplateOptions')"] |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
--Verify Error message |
|
waitForTextPresent |
This page name already exists. |
|
verifyTextPresent |
This page name already exists. |
|
waitForElementPresent |
xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a |
|
click |
xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a |
|
waitForElementPresent |
link=Cancel |
|
click |
link=Cancel |
|
echo |
--Search new page created-- |
|
type |
searchTerm |
Test_POR_20_013 |
select |
searchOption |
label=Title |
waitForElementPresent |
xpath=//form[@id='UIPageSearch']/div[2]/a |
|
click |
xpath=//form[@id='UIPageSearch']/div[2]/a |
|
echo |
--Delete page created-- |
|
waitForElementPresent |
xpath=//img[@title='Delete Page'] |
|
click |
xpath=//img[@title='Delete Page'] |
|
assertConfirmation |
Do you want to delete this page? |
|
waitForElementPresent |
xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a |
|
click |
xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|