Gemalto vOTA OP5 - User password change template

Vendor: Gemalto
Product: vOTA OP5 in
Executor: Http

user-agent Mozilla/5.0 (X11 Chrome/54.0.2840.71 Safari/537.36

start-at https://[#IP#]:8553/monitor/index.php/auth/login

timeout 10000

new-action
log INICIANDO LOGIN
fill input[id="username"] [#USERNAME#]
fill input[id="password"] [#CURRENT_PASSWORD#]
click input[type="submit"]

#new-action
#log TESTANDO LOGIN
#test-location https://[#IP#]:8553/monitor/index.php/tac/index/3
#log LOGADO

new-action
sleep 3
log MUDANDO TELA PARA FORM DE TROCA DE SENHA
set-location https://[#IP#]:8553/monitor/index.php/change_password

new-action
sleep 3
log TESTANDO MUDANÇA DE URL
test-location https://[#IP#]:8553/monitor/index.php/change_password
log ESTAMOS PAG DE TROCA DE SENHA

new-action
log PREENCHEDO FORM DE TROCA DE SENHA
fill input[id="current_password"] [#CURRENT_PASSWORD#]
fill input[id="new_password"] [#NEW_PASSWORD#]
fill input[id="confirm_password"] [#NEW_PASSWORD#]
log CLICANDO NO BOTÃO
click input[id="change_password"]

new-action
sleep 3
log TESTANDO SUCESSO
jscript $('div:contains("Password changed successfully")')
log SUCESSO!
sleep 3