Test_PRL_01_001_CreateNewAccountWithValidValues
open /portal/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
waitForElementPresent link=New Staff
clickAndWait link=New Staff
type username PLT_01_001
type password PLT_01_001
type Confirmpassword PLT_01_001
type firstName PLT_01_001
type lastName PLT_01_001
type email PLT_01_001@yahoo.com
echo -- User Profile tab--
click //div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent user.language
select user.language label=French
click link=Save
waitForTextPresent
verifyTextPresent You have registered a new account.
waitForElementPresent //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
clickAndWait link=Sign out
echo -- Sign in with new account--
open /portal/public/classic/
click link=Sign in
waitForElementPresent username
type username PLT_01_001
type password PLT_01_001
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Déconnexion
open /portal/public/classic/
click link=Sign in
waitForElementPresent username
type username root
type password gtn
click //div[@id='UIPortalLoginFormAction']/div/div/div/a
waitForElementPresent link=Users and groups management
click link=Users and groups management
waitForElementPresent searchTerm
type searchTerm PLT_01_001
click //form[@id='UISearchForm']/div[2]/a
waitForElementPresent //img[@alt='DeleteUser']
click //img[@alt='DeleteUser']
assertConfirmation Are you sure you want to delete PLT_01_001 user?
clickAndWait link=Sign out