简体   繁体   中英

How to Click on the button recaptcha using selenium C#

I need help,I try do click on the recaptcha with selenium on C#, But It not working, I can't found by Xpath the element

ChromeDriver driver;
driver.FindElement(By.Id("recaptcha-reload-button")).Click();

it's the div but I don't have the xpath I need do click on this

Just a suggestion on this, the idea behind reCaptcha is to prevent bot activities on the site. What ever you do with selenium is kind of bot activity. I would suggest to disable reCaptcha(if possible) in the lower environments and perform automation testing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM