Jump to content
Sign in to follow this  
Mativve

Symulacja kliknięcia na recaptchy

Recommended Posts

Hejka!

Od pewnego czasu walczę z problemem symulacji kliknięcia na kwadracik w recaptchy ☺️ .

Korzystam z jQuery oraz wykorzystuję coś takiego:

$(".recaptcha-checkbox-checkmark").click();

 

Gdy wpisuję z konsoli - działa, lecz gdy próbuję to uruchomić z poziomu wtyczki cjs do chrome nie działa.  

 

Próbowałem nawet także tym sposobem :https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_html_click. i nadal nic.

 

Kod tego okienka w recaptchy:

 

	<span aria-checked="true" aria-disabled="false" aria-labelledby="recaptcha-anchor-label" class="recaptcha-checkbox goog-inline-block recaptcha-checkbox-unchecked rc-anchor-checkbox recaptcha-checkbox-checked" dir="ltr" id="recaptcha-anchor" role="checkbox" style="overflow: visible;" tabindex="0"></span>
	<div class="recaptcha-checkbox-border" role="presentation" style="display: none;">
		<span aria-checked="true" aria-disabled="false" aria-labelledby="recaptcha-anchor-label" class="recaptcha-checkbox goog-inline-block recaptcha-checkbox-unchecked rc-anchor-checkbox recaptcha-checkbox-checked" dir="ltr" id="recaptcha-anchor" role="checkbox" style="overflow: visible;" tabindex="0"></span>
	</div>
	<div class="recaptcha-checkbox-borderAnimation" role="presentation" style="">
		<span aria-checked="true" aria-disabled="false" aria-labelledby="recaptcha-anchor-label" class="recaptcha-checkbox goog-inline-block recaptcha-checkbox-unchecked rc-anchor-checkbox recaptcha-checkbox-checked" dir="ltr" id="recaptcha-anchor" role="checkbox" style="overflow: visible;" tabindex="0"></span>
	</div>
	<div class="recaptcha-checkbox-spinner" role="presentation">
		<span aria-checked="true" aria-disabled="false" aria-labelledby="recaptcha-anchor-label" class="recaptcha-checkbox goog-inline-block recaptcha-checkbox-unchecked rc-anchor-checkbox recaptcha-checkbox-checked" dir="ltr" id="recaptcha-anchor" role="checkbox" style="overflow: visible;" tabindex="0"></span>
	</div>
	<div class="recaptcha-checkbox-spinnerAnimation" role="presentation" style="">
		<span aria-checked="true" aria-disabled="false" aria-labelledby="recaptcha-anchor-label" class="recaptcha-checkbox goog-inline-block recaptcha-checkbox-unchecked rc-anchor-checkbox recaptcha-checkbox-checked" dir="ltr" id="recaptcha-anchor" role="checkbox" style="overflow: visible;" tabindex="0"></span>
	</div>
	<div class="recaptcha-checkbox-checkmark" role="presentation" style="">
		<span aria-checked="true" aria-disabled="false" aria-labelledby="recaptcha-anchor-label" class="recaptcha-checkbox goog-inline-block recaptcha-checkbox-unchecked rc-anchor-checkbox recaptcha-checkbox-checked" dir="ltr" id="recaptcha-anchor" role="checkbox" style="overflow: visible;" tabindex="0"></span>
	</div>

 

Tutaj testowa recaptcha:

https://patrickhlauke.github.io/recaptcha/

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Create a New Account. It’s free and easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...