如何使用selenium IDE自动化用户名/密码填充Firefox验证弹出窗口 [英] How to automate username/password fill for firefox authentication popup using selenium IDE

查看:638
本文介绍了如何使用selenium IDE自动化用户名/密码填充Firefox验证弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了一个硒脚本,但是当它用硒-rc打开时,它是一个新的实例,需要我重新登录。有没有办法自动填写用户名/密码弹出的身份验证窗口?



我已经尝试了以下,但它不起作用:



http://用户名:password@site.com/ 而不是 http:


$ b $ 除了调用另一个脚本,比如autohotkey以外,还有其他一些想法吗?

解决方案

您可以给Firefox插件 Firefox的集成身份验证一试。安装后,您可以在Firefox的选项菜单中配置插件。只需将您的site.com添加到启用集成身份验证的网站,看看它是否适合你。在我的情况下,它解决了这个问题。


I got a selenium script that works, but when it is opened with selenium-rc it is in a new instanced which requires me to re-login. Is there a way to automate filling in the username/password for the "authentication required" window that pops up?

I have tried the following but it doesn't work:

http://username:password@site.com/ instead of http://site.com/

Any ideas other than calling another script like autohotkey?

解决方案

You could give the Firefox plugin Integrated Authentication for Firefox a try. After installing you can configure the plugin in the options menu of Firefox. Just add your site.com to the integrated authentication enabled sites and see whether it works for you. In my case it solved the problem.

这篇关于如何使用selenium IDE自动化用户名/密码填充Firefox验证弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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