login
open /webui/
type id=loginPanel_grdLogin_rowUser_txtUserId SuperUser
fireEvent id=loginPanel_grdLogin_rowUser_txtUserId blur
type id=loginPanel_grdLogin_rowPassword_txtPassword System
fireEvent id=loginPanel_grdLogin_rowPassword_txtPassword blur
click id=loginPanel_grdLogin_rowSelectRole_chkSelectRole-real
click id=loginPanel_Ok 10
waitForElementPresent id=rolePanel_grdChooseRole_rowclient_lstClient-btn
click id=rolePanel_grdChooseRole_rowclient_lstClient-btn
click css=#rolePanel_grdChooseRole_rowclient_lstClient_zk_GardenWorld > td.z-comboitem-text
pause 1000
click id=rolePanel_grdChooseRole_rowOrganisation_lstOrganisation-btn
click css=#rolePanel_grdChooseRole_rowOrganisation_lstOrganisation_HQ > td.z-comboitem-text
click id=rolePanel_Ok
waitForElementPresent id=loginUserAndRole
assertText id=loginUserAndRole SuperUser@GardenWorld.HQ/GardenWorld Admin
click id=changeRole
waitForElementPresent id=rolePanel_grdChooseRole_rowclient_lstClient
click id=rolePanel_grdChooseRole_rowclient_lstClient-btn
click css=#rolePanel_grdChooseRole_rowclient_lstClient_System_ > td.z-comboitem-text
click id=rolePanel_Ok
pause 2000
assertText id=loginUserAndRole SuperUser@System.*/System Administrator