yuraku
8 years agoContributor
Authorization automation script for consent screen
Hello
How scripts for "consent page" and other pages are working?
My script is working for the first page, but it doesn't work for "consent page". Should it be in the same section?
Script:
page 1 (login page) [this script is ok]
function login() { if (document.getElementById('Email')) { document.getElementById('Email').value = 'emailAccount'; document.getElementById('next').click(); setTimeout(providePassword, 3000); } } function providePassword() { document.getElementById('Passwd').value = 'emailLogin'; document.getElementById('PersistentCookie').checked = false; document.getElementById('signIn').click(); } login();
page 2 (consent screen) [not working]:
function consent() { document.getElementById('submit_approve_access').click(); } setTimeout(consent, 5000);