Authentication Pop-up in Chrome

Hi, I have been unable to authenticate this pop-up:

I have tried:

  • The WebUI.authenticate method
  • Switch to Window Title method (could not switch to the dialog box)
  • WebUI.openBrowser(“http://username:password@WebsiteURL”)
  • Set Alert Text method (Katalon did not recognize any alert)

Any help would be greatly appreciated. Willing to write some Selenium script if necessary.

Asked and answered my own question.

Solution can be found here:

Best of luck to all those who stumble upon this in the future.

1 Like

Hi there,

I have tried the autoIT authentication from their documentation and installed that and saved the script for that in My katalon script, but it is not working as I desired. It entered wrong data and only in username even though I edited the script accordingly.

Any help would be helpful.

Here is the autoIT script:

WinWaitActive(“”,“Authentication Required”,“10”)
WinFlash(“”, “Authentication Required”,4,500)
If WinExists(“”,“Authentication Required”) Then
Send(“Username{adminsff}”)
Send(“Password{sffadmn&#}”)
ElseIf WinExists(“”,“Chrome Legacy Window”)Then
Send(“Username{adminsff}”)
Send(“Password{sffadmin&#}”)
ElseIf WinExists(“”,“Windows Security”) Then
Send(“Username{adminsff}”)
Send(“Password{sffadmin&#}”)
EndIf

In the documentation it was written to add your username and pass in the respective place and I added.

Here is the script I added in the katalon:
autoit_prj = ‘C:\Users\ST\Katalon Studio\chrome auth.exe’
Runtime.getRuntime().exec(autoit_prj)
Thread.sleep(3000);

The result I am seeing is:

Hi there… Can anyone help me out here as problem I am facing here is that it fill the username and password fields with the credentials, but it does not click the send button and I do not know why …??

Here is the script:
WinWaitActive(“”,“Authentication Required”,“10”)
WinFlash(“”, “Authentication Required”,4,500)
If WinExists(“”,“Authentication Required”) Then
Send(“adminsff{TAB}”)
Send(“sffadmin&#{Enter}”)
ElseIf WinExists(“”,“Chrome Legacy Window”)Then
Send(“adminsff{TAB}”)
Send(“sffadmin&#{Enter}”)
ElseIf WinExists(“”,“Windows Security”) Then
Send(“adminsff{TAB}”)
Send(“sffadmin&#{Enter}”)
EndIf

I just read the Solution in the post above, and there doesn’t seem to be a concern with your script. What about splitting your Send commands up, like:

Send("adminsff")
Send("{TAB}")
Send("sffadmin&#")
Send("{TAB}")

Send("{Enter}")

I don’t know the autoIT app, but you can play with something along this line.

Edit: note that if you do this, you will have to “Compile Script” every time you change it.

Save this file to your desired location. You would have a file with *au3 format. Right click on file and select "Compile Script" option to create .exe file.

I have tried your solution as well but again same response… The send button is not clicking …