How to take screenshot in Selenium password change

To debug if the password change with Selenium is executing properly, you can take a screenshot of the execution.

On the template, add the code below:


:grey_question: TIP: Use a timeout to make sure the website page will be loaded. Exemple below:


To check the screenshot itself, you require the "mt4adm" user password to login into senhasegura.

Once you logged in, access the /var/senhasegura/tmp/selenium path and find the directory that contains the same password change id on senhasegura (Orbit → Executions → List operations menu).

:exclamation: CAUTION: After debugging, do not forget to remove the screenshot code on template.