Created
May 1, 2020 12:58
-
-
Save vickyRathee/dd4286d1f4947554fcd9fded88bd99dd to your computer and use it in GitHub Desktop.
Click on submit button multiple times. similar to await btn.click({ clickCount: 3 }) in puppeteer. https://www.agenty.com/docs/scraping-agent/crawling-password-protected-website-online
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
var clicked = 0; | |
var timer = setInterval(() => { | |
var element = document.querySelector('#submit'); | |
if (!element || clicked > 3) | |
{ | |
clearInterval(timer); | |
} | |
else{ | |
element.click(); | |
clicked++; | |
} | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment