Last active
June 5, 2020 23:52
-
-
Save special-character/59bf63d5a62bf6b870046a43503266c9 to your computer and use it in GitHub Desktop.
Sign Lease Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Super janky hack to scroll through my lease and click the signature button, then click the next page | |
var run7 = () => { | |
setTimeout(() => { | |
const signatures = document.getElementsByClassName('signature') | |
const initials = document.getElementsByClassName('initialHL') | |
console.log('SIGNATURES', signatures) | |
console.log('INITIALS', initials) | |
const sign = () => { | |
document.getElementsByClassName('btn btn btn-primary okClickSignature')[0].click() | |
} | |
const thingsToSign = [...signatures, ...initials] | |
thingsToSign.map((toSign, index) => { | |
setTimeout(() => { | |
toSign.click() | |
}, index * 1000) | |
setTimeout(() => { | |
document.getElementsByClassName('btn btn btn-primary okClickSignature')[0].click() | |
}, index * 1500) | |
}) | |
setTimeout(() => { | |
document.getElementsByClassName('goto_next_page')[0].click() | |
setTimeout(() => run7(), 1500) | |
}, 4000) | |
}, 7000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment