Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,929
Community Members
 
Community Events
176
Community Groups

Capmonster recaptcha not working properly

i am trying to automate recaptcha in python selenium webdriver using capmonster api for python but it seems to recieve and send response but not clicking the recaptcha because money is being deducted       

here is my code:

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
#from capmonster_python import NoCaptchaTaskProxyless
from capmonster_python import RecaptchaV2Task

options = Options()
options.add_argument("--lang=en")

browser=webdriver.Chrome(options=options,executable_path=r"C:\Users\irfan\Downloads\chromedriver.exe")
browser.get("https://www.google.com/recaptcha/api2/demo")

website_key="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
website_url=browser.current_url

captcha=RecaptchaV2Task(client_key="Key")
taskId=captcha.create_task(website_url,website_key)
print("Task Created")
response=captcha.join_task_result(taskId)
print("Response Recieved")
browser.execute_script(f"document.getElementsByClassName('g-recaptcha-response')[0].innerHTML = '{response}';")
print("response injected to input")

browser.find_element_by_id("recaptcha-demo-submit").click()
print("#Form Submitted")

1 answer

0 votes

Welcome to the Atlassian Community!

What does this have to do with Confluence?  

Assuming your code is trying to log into Confluence, why is it trying to do captcha work?  That only happens when you've failed to log in too many times, at which point, you should not be trying to automate any log in.  Even assuming there's a good reason to do this in code, what do you mean by "because money is being deducted"?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events