Unable to handle pop-up since navigateToUrl doesn't complete

Hi hoping for some help here:
I’ve got a url that automatically pop up a login dialog, this dialog seems to be launched prior to the url being fully loaded. I’m therefore unable to spy the login dialog in order to handle it. Am I doing something wrong, or is there a workaround for this problem?

The code is very simple, I just have a navigateToUrl statement, but this never completes.

Attached is a screenshot of the webpage:




It would help if you had shown some test code. So here’s a wild guess, try:


Hi Russ, thanks for your promt reply!
Unfortunately there isn’t much test code to provide as this site isn’t public.

The orginal code i had for the image displayed above was:


WebUI.navigateToUrl(‘https://brukerstotte.baerum.kommune.no/WSSP/’, FailureHandling.CONTINUE_ON_FAILURE)

I tried you suggestion:
WebUI.authenticate(‘https://brukerstotte.baerum.kommune.no/WSSP/’, ‘test1234’, ‘test1234’, 12)

But I still get an error:

(Root cause: Unable to navigate to authenticated page)

All I have left is…


Hi Thomas,

Firstly try this:

WebUI.authenticate(baseURL, ‘username’, ‘password’, 60,

If WebUI.authenticate() keyword doesn’t work … try the below workaround.

Option: 1 (Will work only in chrome)
In order to access website with windows authentication you’ll need to pass the credentials in the URL.


In the test URL load the page by passing in
the username and password in the front of the URL (e.g., [http://admin:admin@](http://admin:admin@)).


**Option: 2
You can use autoit script to handle the same.


Thanks for the suggestions!
Unfortunatley the WebUI.authenticate(baseURL, ‘username’, ‘password’, 60, FailureHandling.OPTIONAL) or Option 1 didn’t work. I’m sure option 2 would have solved the problem, but in this case I ended up using Wintask to solve the problem.

Thanks for the help & suggestions!

Please help!

Authenticate doesn’t work. Java.awt.Robot doesn’t work too. Nothing helps me.

openBrowser or navigateToUrl opens Chrome with login popup.

Then Katalon is awaiting login/pass, test-case is on pause in this moment. Only manual login/pass working. Then Katalon continues test-case.

I cannot do my work.

Please help - How can I login automatically?