Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInValidValueWhileEditingPortal
open /portal/public/classic/
echo -- Check when change width/height of portlet with invalid 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]
echo -- Portlet Setting --
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
echo -- Change current value of Width/height with invalid value (number no have with “px”) --
waitForElementPresent width
type width 300
type height 500
waitForElementPresent link=Save And Close
click link=Save And Close
waitForTextPresent You must enter a pixel value in field "Width:".
verifyTextPresent You must enter a pixel value in field "Width:".
waitForTextPresent You must enter a pixel value in field "Height:".
verifyTextPresent You must enter a pixel value in field "Height:".
waitForElementPresent link=OK
click link=OK
waitForElementPresent Close
click Close
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