captcha on header



  • hi
    how i can solve captcha in selenium while the element is in header and not in post like this
    alt text

    i use this usually when it is in post data :

    document.getElementById('g-recaptcha-response').innerHTML='<SOLUTION>';
    onRecaptchaChecked();
    

    but idk how to input the captcha solved response in header



  • @evangel
    Should be something as simple as this

    REQUEST POST "https://google.com" 
      CONTENT "" 
      CONTENTTYPE "application/x-www-form-urlencoded" 
      HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" 
      HEADER "Pragma: no-cache" 
      HEADER "Accept: */*" 
      HEADER "g-recaptcha-token: <SOLUTION>" 
    

    I haven't try this but if you want to put the "Captcha Solve Response" In header this is how you could do it



  • @Br4uN dear,i know the request,i meant for selenium,i as wrote the js code



  • @evangel
    I guess Set or Send Headers to selenium is not possible currently, unless Ruri has a trick to do that, but could be new feature


Log in to reply