selenium with anticaptcha callback function??

ahmedmani

Regular Member
Joined
Feb 4, 2016
Messages
310
Reaction score
44
i know that in order to validate the captcha i need to manualy run the callback function how? all ik that its jquery
/* JQUERY */ $(document).on('click', '[data-signup]', function() { var params = $.param({ token: $( 'meta[name="csrf-token"]' ).attr('content'), captcha: grecaptcha.getResponse() }) $.ajax({ type: "GET", url: "create_user_temp?"+params, dataType: "json", beforeSend: function ( xhr ) { xhr.setRequestHeader('X-CSRF-Token', params.token); }, error: function(data) { AppLoaderClient.setState({tab: "error"}); }, success: function(data) { console.log(data) if (data.status == "success") { window.location="/"; } else { this.setState({ tab: "failed" }) } }.bind(this) }); });
 
you need to use get requests to fix captcha, check github theres plenty of samples
 
you need to use get requests to fix captcha, check github theres plenty of samples
I would appreciate any link or a anything as i dont understand how a get request will fix this
 
You will have to find the callback function and call it passing the g-recaptcha response as an argument. Different websites might use different func names though
 
Anitcaptcha have a library for selenium and is very usefull, it makes it super easy to implement
 
Back
Top