Search code examples
windows-authenticationautoit

Login to Chrome Authentication window using AutoIT


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

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

Any idea?


Solution

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

    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.

    So modifying the code to

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

    did the trick for Chrome browser.