使用 webdriver 自动化验证码? [英] Automate captcha using webdriver?

查看:14
本文介绍了使用 webdriver 自动化验证码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 WebDriver 自动化验证码?

How to automate captcha using WebDriver?

是否有任何替代方法可以使用 Webdriver 自动化验证码?

Is there any alternate method to automate Captcha using Webdriver?

推荐答案

您可以只在alt"属性中使用显示验证码值来自动化验证码.

You can automate CAPTCHA only using display CAPTCHA value in "alt" attribute.

  1. 在 WebElement 中获取 CAPTCHA 图像

获取alt"属性的值

在文本字段中传递 alt

pass alt value in text field

这篇关于使用 webdriver 自动化验证码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆