Test_SNF_PRL_44_AddApplicationIntoCategoryWhenEditLayoutForGroupPage
open /portal/public/classic/
echo -- Change application when edit layout for group's page --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Application Registry
echo -- Click Add new page on Group editor menu--
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
click //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
waitForElementPresent pageName
type pageName Test_SNF_PRL_44
type pageDisplayName Test_SNF_PRL_44
echo -- Click Next to move step 2--
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
echo -- Keep empty layout and click Next move step 3--
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
echo -- Click Finish --
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
clickAndWait //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
assertLocation http://localhost:8080/portal/private/classic/administration/Test_SNF_PRL_44
echo -- Click Edit layout --
waitForElementPresent link=Edit Layout
click link=Edit Layout
echo -- View layout before Change application--
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent //div[@id="UIPortalApplication"]
verifyElementPresent //div[@id="UIPortalApplication"]
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo -- Choose Container tab--
waitForElementPresent //div[@id='UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div
click //div[@id='UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div
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[1]/div/div/div[1]/div/div/div/div[1]/div
dragAndDropToObject //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div
echo -- Choose Application tab--
waitForElementPresent //div[@id='UIPortalComposerTab']/div[1]/div/div[1]/div/div/div/div
click //div[@id='UIPortalComposerTab']/div[1]/div/div[1]/div/div/div/div
echo -- Drag & drop application into the container added above--
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 -- Delete application --
mouseOver //div/div/div[2]/div/div/div/div/div/div/div[2] Calculator
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[2]
click //div/div/div[2]/div/div/div/div/div/div/a[2]
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this portlet?
echo -- Choose Container tab to delete container --
waitForElementPresent //div[@id='UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div
click //div[@id='UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div
mouseOver //div/div/div[2]/div/div/div/div/div/div/div[2] Container
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[2]
click //div/div/div[2]/div/div/div/div/div/div/a[2]
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this Container?
echo -- Click to Finish
waitForElementPresent //div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]
click //div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]
echo -- Go to Edit Navigation --
waitForElementPresent link=Group
clickAndWait link=Group
waitForElementPresent //div[@id='UIGroupNavigationGrid']/table[2]/tbody/tr/td[3]/a[1] Edit Navigation
click //div[@id='UIGroupNavigationGrid']/table[2]/tbody/tr/td[3]/a[1] Edit Navigation
echo -- Delete node --
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_44']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_44']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent link=Save
click link=Save
echo -- Go to Page Management --
clickAndWait link=Page Management
waitForElementPresent searchTerm
type searchTerm Test_SNF_PRL_44
waitForElementPresent searchOption
select searchOption label=Title
waitForElementPresent //form[@id='UIPageSearch']/div[2]/a
click //form[@id='UIPageSearch']/div[2]/a
echo -- Delete page --
waitForElementPresent //img[@title='Delete Page']
click //img[@title='Delete Page']
waitForConfirmationPresent
assertConfirmation Do you want to delete this page?
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
waitForElementPresent link=Sign out
clickAndWait link=Sign out