I am solving a captcha through a website that provides this service via an API. But when I try to insert and send a solved captcha, I can't do anything.
Captcha_dict = {
'proxy': '',
'proxytype': '',
'googlekey': '6LfnDXUUAAAAAAFwuBbkcfLWBxa1rlUikjzKwlhD',
'pageurl': 'https://wazirx.com/signup'
}
json_Captcha = json.dumps(Captcha_dict)
client = package.SocketClient(username, password)
tokenContainer = ""
captcha = client.decode(type=4, token_params=json_Captcha)
browser.execute_script(f"document.getElementById('g-recaptcha-response').innerHTML='{tokenContainer}'")
wait = WebDriverWait(browser, 10)
wait.until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,"/html/body/div[2]/div[2]/iframe")))
wait.until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,'//*[@id="recaptcha-verify-button"]'))).click()
I try to click on the submit button, but selenium gives an error that there is no such button, although I switched to a frame with a captcha
I really need your help. I would be grateful to anyone who will answer me and somehow help in solving my problem. Thanks