Test_POR_14_01_043_CheckShowSiteEditorMenu
open /portal/public/classic/
echo -- Check show Site Editor menu --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to New Staff--
clickAndWait link=New Staff
waitForElementPresent username
type username Test_POR_14_043
type password Test_POR_14_043
type Confirmpassword Test_POR_14_043
type firstName Test_POR_14_043
type lastName Test_POR_14_043
type email Test_POR_14_043@gmail.com
echo -- Choose User Profile--
waitForElementPresent //div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent user.language
select user.language label=Vietnamese
waitForElementPresent link=Save
click link=Save
waitForTextPresent You have registered a new account.
verifyTextPresent You have registered a new account.
waitForElementPresent //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
echo --Select User and group managent in menu--
waitForElementPresent link=Users and groups management
clickAndWait link=Users and groups management
echo -- Choose Group Management --
waitForElementPresent xpath=//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']
click xpath=//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']
echo -select group from the tree-
waitForElementPresent link=Platform
click link=Platform
waitForElementPresent link=Administrators
click link=Administrators
waitForElementPresent //form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a
verifyText //form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a
click //form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a
waitForElementPresent Test_POR_14_043
click Test_POR_14_043
echo --Click add button--
waitForElementPresent xpath=//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton LightBlueStyle']
click xpath=//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton LightBlueStyle']
waitForElementPresent membership
select membership label=manager
waitForElementPresent link=Save
click link=Save
echo --Page Management--
waitForElementPresent link=Page Management
clickAndWait link=Page Management
echo --Add new page--
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=portal
waitForElementPresent name
type name Test_POR_14_043
type title Test_POR_14_043
echo -- Page Layout--
waitForElementPresent xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']
click xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']
echo -- Permission Setting--
waitForElementPresent xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']
click xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']
waitForElementPresent link=Save
clickAt link=Save
echo -- Add new node--
clickAndWait link=Site
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent link=Add Node
click link=Add Node
waitForElementPresent name
type name Test_POR_14_043
type label Test_POR_14_043
echo -- Choose Page Selector--
waitForElementPresent xpath=//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']
click xpath=//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']
waitForElementPresent link=Search and Select Page
click link=Search and Select Page
echo --Select page created from page lists--
waitForElementPresent //div[@id='UIRepeater']/table/tbody/tr[2]/td[5]/div/img
click //div[@id='UIRepeater']/table/tbody/tr[2]/td[5]/div/img
echo -- Save to finish add new node--
waitForElementPresent link=Save
click link=Save
echo -- Save to close Navigation Management--
waitForElementPresent link=Save
click link=Save
echo --Sign out--
clickAndWait link=Sign out
echo --Sign In with new accout--
open /portal/public/classic/
waitForElementPresent link=Sign in
clickAt link=Sign in
waitForElementPresent username
type username Test_POR_14_043
type password Test_POR_14_043
clickAndWait xpath=//div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait //div[@id='PortalNavigationTopContainer']/div[1]/div/div/div/div/div/div/a
mouseOver link=Site Editor
echo --Sign out--
clickAndWait link=Đăng xuất
echo --Sign In by root--
open /portal/public/classic/
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait xpath=//div[@id='UIPortalLoginFormAction']//a
echo - Go to Manage page again--
waitForElementPresent link=Page Management
click link=Page Management
echo -- Search page created above--
waitForElementPresent searchTerm
type searchTerm Test_POR_14_043
select searchOption label=Title
waitForElementPresent xpath=//form[@id='UIPageSearch']/div[2]/a
click xpath=//form[@id='UIPageSearch']/div[2]/a
echo --Delete page--
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 //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
echo -- Go to User and Group managent--
waitForElementPresent link=Users and groups management
click link=Users and groups management
echo -- Choose user management --
waitForElementPresent //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1]
click //div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1]
waitForElementPresent searchTerm
type searchTerm Test_POR_14_043
waitForElementPresent xpath=//form[@id='UISearchForm']/div[2]/a
click xpath=//form[@id='UISearchForm']/div[2]/a
waitForElementPresent xpath=//img[@alt='DeleteUser']
click xpath=//img[@alt='DeleteUser']
assertConfirmation Are you sure you want to delete Test_POR_14_043 user?
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
echo -- Go to Site --
clickAndWait link=Site
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_POR_14_043']
waitForElementPresent link=Delete Node
click link=Delete Node
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Sign out
clickAndWait link=Sign out