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:
Thanks!
image.png
Thomas,
It would help if you had shown some test code. So here’s a wild guess, try:
https://docs.katalon.com/display/KD/[WebUI]+Authenticate
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.openBrowser(’’)
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)
Hi Thomas,
Firstly try this:
WebUI.authenticate(baseURL, ‘username’, ‘password’, 60,
FailureHandling.OPTIONAL)
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.
http://the-internet.herokuapp.com/basic_auth
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@)
).
WebUI.openBrowser(``'[http://admin:admin@the-internet.herokuapp.com/basic_auth](http://admin:admin@the-internet.herokuapp.com/basic_auth)'``)
**Option: 2
**
You can use autoit script to handle the same.
https://docs.katalon.com//display/KD/Using+autoIT+for+authentication+in+Katalon+Studio
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?
Chrome_Login.png