Test_POR_20_026_CreateSameNamePortalPagesInDifferentPortals
open /portal/public/classic/
echo --Go to Page Management--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//a[text()='Sign in']
echo --Select Page Mangement on menu item--
waitForElementPresent link=Page Management
click link=Page Management
echo --Add new page for current portal --
waitForElementPresent xpath=//div[@id='UIPageBrowser']//a[text()='Add New Page']
click xpath=//div[@id='UIPageBrowser']//a[text()='Add New Page']
waitForTextPresent Page Setting
waitForElementPresent ownerType
select ownerType label=portal
waitForElementPresent name
type name POR_20_026
type title POR_20_026
echo -- Choose Page Layout --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()='Page Layout']
click //div[@id='UIMaskWorkspace']//div[text()='Page Layout']
echo -- Choose Permission Setting --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()='Permission Setting']
click //div[@id='UIMaskWorkspace']//div[text()='Permission Setting']
waitForTextPresent Access Permission Setting
verifyTextPresent Access Permission Setting
waitForElementPresent link=Edit Permission Setting
click link=Edit Permission Setting
waitForTextPresent Edit Permission Setting
verifyTextPresent Edit Permission Setting
waitForElementPresent link=Save
click link=Save
echo --Go to Site--
waitForElementPresent link=Site
click link=Site
echo --Add new portal--
waitForElementPresent link=Add New Portal
click link=Add New Portal
waitForElementPresent name
type name Test_POR_20_026
echo -- Portal Template --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()='Portal Templates']
click //div[@id='UIMaskWorkspace']//div[text()='Portal Templates']
echo -- Choose Properties --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()='Properties']
click //div[@id='UIMaskWorkspace']//div[text()='Properties']
echo -- Choose Permisison Setting --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()='Permission Setting']
click //div[@id='UIMaskWorkspace']//div[text()='Permission Setting']
waitForTextPresent Access Permission Setting
verifyTextPresent Access Permission Setting
waitForElementPresent publicMode
click publicMode
echo -- Edit Permission Setting --
waitForElementPresent link=Edit Permission Setting
click link=Edit Permission Setting
waitForElementPresent link=Select Permission
click link=Select Permission
waitForElementPresent link=Platform
click link=Platform
waitForElementPresent link=exact:*
click link=exact:*
waitForElementPresent link=Save
click link=Save
waitForTextPresent Test_POR_20_026
verifyTextPresent Test_POR_20_026
echo --View new portal
waitForElementPresent link=Test_POR_20_026
click link=Test_POR_20_026
pause 5000
echo --Select Page Mangement on menu item--
waitForElementPresent link=Page Management
click link=Page Management
echo --Add new page for new portal --
waitForElementPresent xpath=//div[@id='UIPageBrowser']//a[text()='Add New Page']
click xpath=//div[@id='UIPageBrowser']//a[text()='Add New Page']
waitForTextPresent Page Setting
waitForElementPresent ownerType
select ownerType label=portal
waitForElementPresent name
type name POR_20_026
type title POR_20_026
echo -- Choose Page Layout --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()='Page Layout']
click //div[@id='UIMaskWorkspace']//div[text()='Page Layout']
echo -- Choose Permisision Setting --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()='Permission Setting']
click //div[@id='UIMaskWorkspace']//div[text()='Permission Setting']
waitForTextPresent Access Permission Setting
verifyTextPresent Access Permission Setting
echo -- Edit Permission 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_026
waitForElementPresent searchOption
select searchOption label=Title
waitForElementPresent //a[@title='Quick Search']
click //a[@title='Quick Search']
echo --Delete page of new portal--
waitForElementPresent xpath=//img[@title='Delete Page']
click xpath=//img[@title='Delete Page']
assertConfirmation Do you want to delete this page?
echo --Delete page of current portal--
waitForElementPresent xpath=//img[@title='Delete Page']
click 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
echo --Go to Site--
waitForElementPresent link=Site
clickAndWait link=Site
echo --Delete new portal
waitForElementPresent xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]
click xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]
waitForConfirmation Are you sure you want to delete this portal?
pause 5000
waitForTextNotPresent Test_POR_20_026
verifyTextNotPresent Test_POR_20_026