1

如何使用验证码对表单进行自动化测试?我正在使用 selenium 创建测试..我必须通过验证码测试并验证下一页........

4

4 回答 4

2

您需要构建一种方法来将已知的验证码引入页面。然后,您只需根据需要填写字段并提交表格。如果您可以使用任意的验证码来做到这一点,那么您的验证码不会对您有多大好处。

于 2009-05-09T18:56:56.557 回答
1

正如 tvanfosson 所建议的那样,要么在页面上有一个已知的验证码,要么有一个配置设置来关闭你的测试环境的验证码验证。

于 2009-05-12T13:17:53.923 回答
0

I used message popup which will be displayed until pressed ok and our execution will be paused so that manually we can enter captcha code. It will be better approach than Thread.sleep();

JOptionPane.showMessageDialog(null, "Hello");
于 2014-09-01T09:58:21.953 回答
-1

尝试免费试用 Automation Anywhere。我认为你可以创建一个任务,看看它是如何进行的。

http://www.automationanywhere.com/solutions/automatedtesting.htm

于 2009-05-14T06:43:27.183 回答