My aim is to use GoogleScript to autologin to a website - for this I have used the following post (incl. the comments that post received) as template:
How to login to an external website with Google Apps Scripts?
I could get it to populate the username ... but password remained empty and login was not triggered - it basically stranded on the login page - not indicating that password had been entered - nor complaining about it being missing.
Then I tried a more simple approach by following this post:
How can I autologin into a website with IE?
-I got the same result - with the test code looking like this:
<!DOCTYPE html>
<head>
</head>
<body>
<script type="text/javascript">
BoardURL="https://fantasyfootball.telegraph.co.uk";
UserName="myusername";
PassWord="mypassword";
document.write('<form name="autoLogin" action="'+BoardURL+'/premierleague/log-in/"method="post"><input type="hidden" name="email" value="'+UserName+'"><input type="hidden" name="pass" value="'+PassWord+'">');
document.forms[0].submit();
</script>
</body>
I would expect to see both username and password entered on the webpage + a complain about wrong username/password combination (indicating that login had been attempted) ... because of the values "myusername" & "mypassword" being used for the login.
I'm using Chrome.
I have spend a lot of time searching for an answer to why neither approach is working and I have reached the point where I need to turn to some experts that can either tell me what I'm doing wrong or tell me that this is never going to work (due to e.g. security settings on the website). Any feedback on this will be appreciated.