英文:
I am writing the below code in selenium to click the Captcha checkbox and below error is showing
问题
Sure, here's the translated content:
driver.findElement(By.xpath("//i[@class='fa fa-eye-slash']")).click();
英文:
driver.findElement(By.xpath("//i[@class='fa fa-eye-slash']")).click();
答案1
得分: 1
你好,验证码来自谷歌,其目的是防止第三方工具进行自动化操作,因此请不要尝试自动化验证码操作。验证码,全称为“全自动区分计算机和人类的图灵测试”,旨在明确防止自动化,因此请勿尝试!有两种主要策略可以绕过验证码检查:
- 在测试环境中禁用验证码。
- 添加钩子以允许测试绕过验证码。
英文:
Hi captcha is from google and that purpose is cant automate by 3 rd party any tools so don't try to automate captcha
CAPTCHA, short for Completely Automated Public Turing test to tell Computers and Humans Apart, is explicitly designed to prevent automation, so do not try! There are two primary strategies to get around CAPTCHA checks:
Disable CAPTCHAs in your test environment
Add a hook to allow tests to bypass the CAPTCHA
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论