Here bro
string token= "";//token by anycaptcha
string script = "var fcName = '';var elements = document.getElementsByClassName('hcaptcha ng-scope ng-isolate-scope')[0]; var mt = Object.getOwnPropertyNames(elements); for(var i=0;i<mt.length;i++){if(mt.includes('jQuery')){fcName = mt; break;}} if(fcName!=''){elements[fcName].$scope.challengeCompleted('"+token+ "')}";
(JavascriptExecutor)driver).executeScript(script);