Test_SNF_PRL_40_EditPageForGroup
open /portal/public/classic/
echo -- Add new page for group --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
echo -- Click Add new page on group editor menu--
clickAndWait link=New Staff
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent //div[@id='UIPageNodeSelector']//a[@title='Up Level']
click //div[@id='UIPageNodeSelector']//a[@title='Up Level']
waitForElementPresent pageName
type pageName Test_SNF_PRL_40
type i18nizedLabel Test_SNF_PRL_40
echo -- Click Next to move step 2--
waitForElementPresent //div[contains(text(),'Next')]
click //div[contains(text(),'Next')]
echo -- Keep empty layout and click Next move step 3--
waitForElementPresent //div[contains(text(),'Next')]
click //div[contains(text(),'Next')]
echo -- Click Finish --
waitForElementPresent //a[@title='Finish']
clickAndWait //a[@title='Finish']
open http://localhost:8080/portal/private/classic/organization/Test_SNF_PRL_40
echo -- Edit page
waitForElementPresent link=Edit Page
click link=Edit Page
echo -- View layout of page before change--
waitForElementPresent link=Switch View mode
click link=Switch View mode
waitForElementPresent //div[@class="VIEW-PAGE"]
verifyElementPresent //div[@class="VIEW-PAGE"]
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo -- Choose Container tab--
waitForElementPresent //div[contains(text(),"Containers")]
click //div[contains(text(),"Containers")]
echo -- Add container by drag & drop--
waitForElementPresent //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div
dragAndDropToObject //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div
echo -- Choose Application tab--
waitForElementPresent //div[contains(text(),"Applications")]
click //div[contains(text(),"Applications")]
echo -- Drag & drop application into the container added above--
waitForElementPresent link=Gadgets
click link=Gadgets
waitForElementPresent //div[@id='Gadgets/Calculator']/div/div/img //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div
dragAndDropToObject //div[@id='Gadgets/Calculator']/div/div/img //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div
waitForElementPresent link=Switch View mode
click link=Switch View mode
waitForElementPresent UIPortalApplication
verifyElementPresent UIPortalApplication
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo --Edit application --
mouseOver //div[contains(@title,"Hold")] Calculator
waitForElementPresent //a[@title='Edit Portlet']
click //a[@title='Edit Portlet']
waitForElementPresent title
type title Test_SNF_PRL_40
echo -- Choose Select Icon tab --
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()="Select Icon"]
click //div[@id='UIMaskWorkspace']//div[text()="Select Icon"]
waitForElementPresent //form[@id='UIPortletForm']/div[3]/div/div/div[2]/div[2]/div/a[1]/div
click //form[@id='UIPortletForm']/div[3]/div/div/div[2]/div[2]/div/a[1]/div
echo -- Choose Decoration Themes--
waitForElementPresent //div[@id='UIMaskWorkspace']//div[text()="Decoration Themes"]
click //div[@id='UIMaskWorkspace']//div[text()="Decoration Themes"]
waitForElementPresent //div[text()='Pink Simple']
click //div[text()='Pink Simple']
waitForElementPresent link=Save And Close
click link=Save And Close
echo -- View after change something in application --
waitForElementPresent link=Switch View mode
click link=Switch View mode
waitForTextPresent Test_SNF_PRL_40
verifyTextPresent Test_SNF_PRL_40
echo -- Return to normail view --
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo -- Delete application --
mouseOver //div[contains(@title,"Hold")] Test_SNF_PRL_40
waitForElementPresent //a[@title='Delete Portlet']
click //a[@title='Delete Portlet']
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this portlet?
echo -- Choose Container tab to delete container --
waitForElementPresent //div[contains(text(),"Containers")]
click //div[contains(text(),"Containers")]
mouseOver //div[contains(@title,"Hold")] Container
waitForElementPresent //a[@title='Delete Container']
click //a[@title='Delete Container']
waitForConfirmationPresent
assertConfirmation Are you sure to delete this Container?
echo -- Click to Finish
waitForElementPresent //div[@id='UIPageEditor']//a[@title='Finish']
click //div[@id='UIPageEditor']//a[@title='Finish']
echo -- View node after change application --
waitForElementPresent link=Test_SNF_PRL_40
clickAndWait link=Test_SNF_PRL_40
assertLocation http://localhost:8080/portal/groups/:organization:management:executive-board/organization/Test_SNF_PRL_40
echo -- Go to Edit Navigation --
clickAndWait link=Group
click link=Edit Navigation
echo -- Delete node --
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_40']
click //a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_40']
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_40']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_40']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure to delete this node?
waitForElementPresent link=Save
click link=Save
echo -- Go to Page Management --
clickAndWait link=Page Management
waitForElementPresent pageTitle
type pageTitle Test_SNF_PRL_40
select name=searchOption label=group
waitForElementPresent //a[@title='Quick Search']
click //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[contains(@onclick,"action=Close")]
click //div[contains(@onclick,"action=Close")]
waitForElementPresent link=Sign out
clickAndWait link=Sign out