I am testing a script to auto share eCommerce listings on a Site. Sometimes I will get a popup… I am not a robot. It never ask to solve anything just click the box.
How can my script that is running detect the recaptcha modal has popped up and pause.
In other words I need it to pause and stay paused when the captcha appears. But first and foremost it needs to detect it popes up.
I am running a loop that clicks a share button…
"Command": "click",
"Target": "xpath=(//ul[contains(@class,'listing-actions-con')]/li[3]/a/i)[${Loop_Counter}]",
"Value": ""
Right now it will just keep running the loop when the captcha appears.
This is code I had in another program I use to use…
function captchaChecker() {
if ($(‘#captcha-popup’).css(‘display’) == ‘block’ ||
$(‘.g-recaptcha-con’).length > 0) {
captchaPoppedUp = true;
myAudio.play();
chrome.storage.local.set({‘keepSharing’: false});
var id = window.setTimeout(function() {}, 0); while (id–) { window.clearTimeout(id); }
setTimeout(function() {
alert('Click the reCaptcha checkbox & restart the function to continue.');
}, 500);
}
// $(‘html’).append(‘
’);I AM CAPTCHA!
}
Anyway this can be adapted to run here and if so how…
Also anyway to actually click the box?
Thanks in advance