Test_SNF_PRL_66_ChangeUserProfile
open /portal/public/intranet/
echo -- Change User Profile--
windowMaximize
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --  Choose My Profile--
waitForElementPresent link=My Profile
clickAndWait link=My Profile
echo - Click Edit icon to edit information of user --
waitForElementPresent //div[@id='UITitleBar']/div/div/div/div/a
click //div[@id='UITitleBar']/div/div/div/div/a
waitForElementPresent firstName
type firstName Root_edit
type lastName Root_edit
waitForElementPresent //div[@id='UITitleBar']/div/div/div/div/a[2]
click //div[@id='UITitleBar']/div/div/div/div/a[2]
waitForTextPresent Root_edit Root_edit
verifyTextPresent Root_edit Root_edit
echo -- Delete data--
waitForElementPresent link=My Profile
clickAndWait link=My Profile
waitForElementPresent //div[@id='UITitleBar']/div/div/div/div/a
click //div[@id='UITitleBar']/div/div/div/div/a
waitForElementPresent firstName
type firstName Root
type lastName Root
waitForElementPresent //div[@id='UITitleBar']/div/div/div/div/a[2]
click //div[@id='UITitleBar']/div/div/div/div/a[2]
waitForTextPresent Root Root
verifyTextPresent Root Root
waitForElementPresent link=Logout
clickAndWait link=Logout