Authenticate method doesn’t detect BtnOK in a popup

Hi all. I’m having a problem with an authentication popup. I’m trying to use the “Authenticate” keyword, and it works fine with the “Username” and “Password” being filled in the popup, but then it is supposed to click on the “Accept” button, but doesn’t find it, so it’s showing following message in the log:

“Unable to navigate to authenticated page (Root cause: java.lang.Exception: Failed to click OK button on Authentication dialog: Object ‘BtnOK’ is not found)”

Visible options in the popup are “Log in” and “Cancel”.

The url is:

https://dev.mcdonalds.konoss.net/

How can I manage this? I’m using Chrome, but it doesn’t either work with Firefox. I can’t capture the id’s of the popup form neither with the record capabilities of Katalon nor the F12 developer tools from Chrome, so I don’t know how to interact with them.

Any advice would be greatly appreciated.

Hi everybody,

I am encountering the same sort of issue.
Trying to run a remote test case, the authentication step return this error : “FAILED because (of) Unable to navigate to authenticated page (Root cause: java.lang.Exception: Unsupported browser (only support IE, FF, Chrome))” whereas I am running it on a distant Chrome 59 on Win 10. I do not understand.

Any clue ?

Thanks a lot

Hi all
I am stuck at the exact same problem, also encountering the same response as Jon Robinson (being a Mac user:
"Unable to navigate to authenticated page (Root cause: java.lang.Exception: Unsupported platform (only support Windows). "
Is there a simple way to just dismiss the ‘Authentication Required’ popup?
It would be acceptable for me to simulate clicking the ‘Cancel’ button so the Authentication Required popup window can just go away.
Any suggestions welcome.
Many thanks

I got the same issue. I have error log (Unable to navigate to authenticated page (Root cause: java.lang.Exception: Failed to set user name on Authentication dialog: Object ‘TxtUserName’ is not found) for both ie and Firefox, “Unable to navigate to authenticated page (Root cause: java.lang.Exception: Failed to click OK button on Authentication dialog: Object ‘BtnOK’ is not found)” for chrome

Hi Vinh Nguyen

I tried your example, but got the following error:

Unable to navigate to authenticated page (Root cause: java.lang.Exception: Unsupported platform (only support Windows))

Any idea? I’m a MAC user :slight_smile:

Hi there,

You can create a ticket and send it through there.

Thanks

Where shall I send it ? Thanks.

Hi there,

I still can’t reproduce your case, can you try to run Katalon Studio by administrator and re-try? If the issue still happens, please send me .log file which is available in .metadata folder, e.g: C:\4.5\config\.metadata\.log

Thanks

Hello guys,

I have the same issue as Alejandro. In my case, Katalon Studio is hanging after inputing login and pwd, and not even displaying an error in the logs.

I have tested your suggestion but:

Under Chrome 58, same result on your website sample (Katalon does input correctly login and pwd but can’t submit and hangs)
Under Firefox 53, login and pwd are not even input

Regards,

Hi there,

Please try to execute the following script from your side to see if you observe the same problem:

WebUI.openBrowser('')

WebUI.authenticate('http://the-internet.herokuapp.com/basic_auth', 'admin', 'admin', 20)

WebUI.closeBrowser()

That web application above has the same authentication dialog like your web application. My execution results is success, please check if you have the same or different results first.

Thanks

Of course, here is a screenshot of the popup:

Thank you very much in advance.

Hi there,

I can’t access that page, is it possible that your url can be accessed from outside? Do you have a screenshot showing your popup?

Thanks