Test_SNF_PRL_13_ShowOrHideImportApplicationIcon
open /portal/classic/
echo -- Show or hide Import Application icon--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
echo -- Go to Application Registry--
clickAndWait link=Application Registry
waitForTextPresent Import Applications
verifyTextPresent Import Applications
waitForElementPresent link=Edit Page
click link=Edit Page
echo -- Hide import application icon --
waitForElementPresent //div[contains(@title,"Hold")]
mouseOver //div[contains(@title,"Hold")]
waitForElementPresent //a[@title="Edit Portlet"]
click //a[@title="Edit Portlet"]
waitForElementPresent showImport
click showImport
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Close
click link=Close
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForTextNotPresent Import Applications
verifyTextNotPresent Import Applications
echo -- Show Import Application icon --
waitForElementPresent link=Edit Page
click link=Edit Page
waitForElementPresent //div[contains(@title,"Hold")]
mouseOver //div[contains(@title,"Hold")]
waitForElementPresent //a[@title="Edit Portlet"]
click //a[@title="Edit Portlet"]
waitForElementPresent showImport
click showImport
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Close
click link=Close
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForTextPresent Import Applications
verifyTextPresent Import Applications
waitForElementPresent link=Sign out
clickAndWait link=Sign out