Test_POR_12_02_037_CheckWhenChangeWidthHeightOfPortletWithValidValueWhileEditingPortal
open /portal/public/classic/
echo -- Check when change width/height of portlet with valid value while editing portal--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Edit layout's portal --
waitForElementPresent link=Edit Layout
click link=Edit Layout
echo -- Edit portlet --
mouseOver //div/div/div[2]/div/div/div/div/div/div/div[2] Banner Portlet
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[1]
click //div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent //div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div
click //div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent width
type width 300px
type height 500px
waitForElementPresent link=Save And Close
click link=Save And Close
waitForElementPresent //div[@id='UIPortalComposer']/div[3]/div/div/div[1]/table/tbody/tr/td/div[2]/div/div/div/div
click //div[@id='UIPortalComposer']/div[3]/div/div/div[1]/table/tbody/tr/td/div[2]/div/div/div/div
waitForText //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div[2]/div/div/div[1]
echo -- View after change width/height of portlet --
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo -- Check when change width/height of portlet with blank while editing portal--
mouseOver //div/div/div[2]/div/div/div/div/div/div/div[2] Banner Portlet
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[1]
click //div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent //div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div
click //div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent width
type width
type height
waitForElementPresent link=Save And Close
click link=Save And Close
echo -- view when change width/height of portlet with blank --
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent //div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]
click //div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]
waitForElementPresent link=Sign out
clickAndWait link=Sign out