Auto login gmail problem

Hi all,
I want to create an app that would login on gmail automatically from webviewer. It seems like an easy problem and with a first look it can be solved with document.getElementById(“identifierId”).value = “my_email”; and then a click on button next. The problem is in the second page that asks for password. document.getElementById(“password”).value = “password”; doesn’t seem to work maybe because this id it’s not in one class as the first id. Do you have any answer or help for my problem?

Thanks in advance!