使用 AutoIT 登录 Chrome 身份验证窗口 [英] Login to Chrome Authentication window using AutoIT

查看:56
本文介绍了使用 AutoIT 登录 Chrome 身份验证窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过以下代码登录到 Firefox 身份验证窗口:

I tried login to firefox authentication window by following code :

WinWaitActive("Authentication Required","","120")
If WinExists("Authentication Required") Then
Send("username{TAB}")
Send("password{Enter}")
EndIf

但同样的 dint 也适用于 chrome,即使它与 firefox 具有相同的标题.

But the same dint worked for chrome even though it has the same title as firefox.

有什么想法吗?

推荐答案

@Milos @Samoth 感谢您花时间解决我的问题.

@Milos @Samoth thanks for spending to solve my query.

使用 Autoit windows 信息工具,我无法识别 chrome 中的 windows tile,这在 FF 或 IE 中不是这样.而不是标识为可见文本的需要身份验证".

Using Autoit windows info tool, i could not identify the windows tile in chrome thats not a case in FF or IE. Instead of that "Autentication Required" identified as visible text.

所以修改代码为

WinWaitActive("","Authentication Required","120")
If WinExists("","Authentication Required") Then
Send("username{TAB}")
Send("password{Enter}")
EndIf

为 Chrome 浏览器做的把戏.

did the trick for Chrome browser.

这篇关于使用 AutoIT 登录 Chrome 身份验证窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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