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

查看:474
本文介绍了使用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

尽管chrome与Firefox的标题相同,但同样的方法也适用于chrome.

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磁贴,这在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天全站免登陆