Test_POR_20_021_CreateGroupPageWithNameTheSameWithExistingUserPage
open /portal/public/classic/
echo --Go to Page Management--
windowMaximize
click link=Sign in
waitForElementPresent username root
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
echo --Add new page for user--
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 POR_20_021
type title POR_20_021
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
clickAt link=Save
echo --Add new page for group --
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 ownerType
select ownerType label=group
waitForElementPresent xpath=//option[@value='group']
click xpath=//option[@value='group']
select ownerId label=/organization/operations
waitForElementPresent xpath=//option[@value='/organization/operations']
click xpath=//option[@value='/organization/operations']
waitForElementPresent name
type name POR_20_021
type title POR_20_021
echo -- Choose Page Layout --
waitForElementPresent //div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[@id='UIMaskWorkspace']/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
echo -- Choose Permission Setting --
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', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPageForm','SelectTab','&objectId=PermissionSetting')"]
echo -- Access Permission Setting --
waitForTextPresent Access Permission Setting
verifyTextPresent Access Permission Setting
echo -- Edit Permisison Setting --
waitForElementPresent link=Edit Permission Setting
click link=Edit Permission Setting
waitForElementPresent link=Save
click link=Save
echo --Search new page created--
waitForElementPresent searchTerm
type searchTerm POR_20_021
select searchOption label=Title
waitForElementPresent xpath=//form[@id='UIPageSearch']/div[2]/a
click xpath=//form[@id='UIPageSearch']/div[2]/a
echo --Delete page of user--
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
echo --Delete page of group--
waitForElementPresent xpath=//img[@title='Delete Page']
clickAt xpath=//img[@title='Delete Page']
assertConfirmation Do you want to delete this page?
waitForTextPresent No result found.
verifyTextPresent No result found.
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