Test_PRL_02_04_001_DeleteSpecificUserFromExistingUsersListInCommunityManagement
open /portal/public/classic/
echo -- Add new user--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=New Staff
waitForElementPresent username
type username Test_PRL_02_04_001
type password Test_PRL_02_04_001
type Confirmpassword Test_PRL_02_04_001
type firstName Test_PRL_02_04_001
type lastName Test_PRL_02_04_001
type email Test_PRL_02_04_001@gmail.com
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=German
click link=Save
waitForElementPresent //div[3]/div/div/div/div/div[2]
verifyText //div[3]/div/div/div/div/div[2] 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 -- Login in with new user--
open /portal/public/classic/
click link=Sign in
waitForElementPresent username
type username Test_PRL_02_04_001
type password Test_PRL_02_04_001
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Abmelden
echo -- Delete user--
open /portal/public/classic/
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Users and groups management
waitForElementPresent searchTerm
type searchTerm Test_PRL_02_04_001
click //form[@id='UISearchForm']/div[2]/a
click //img[@alt='DeleteUser']
assertConfirmation Are you sure you want to delete Test_PRL_02_04_001 user?
clickAndWait link=Sign out