我正在使用Selenium编写以下代码,以点击验证码复选框,但出现以下错误:

huangapple go评论63阅读模式
英文:

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();

英文:

click the captcha checkbox

inspect the checkbox

driver.findElement(By.xpath("//i[@class='fa fa-eye-slash']")).click();

答案1

得分: 1

你好,验证码来自谷歌,其目的是防止第三方工具进行自动化操作,因此请不要尝试自动化验证码操作。验证码,全称为“全自动区分计算机和人类的图灵测试”,旨在明确防止自动化,因此请勿尝试!有两种主要策略可以绕过验证码检查:

  1. 在测试环境中禁用验证码。
  2. 添加钩子以允许测试绕过验证码。
英文:

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

huangapple
  • 本文由 发表于 2020年10月14日 18:14:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/64351134.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定