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

Hi, I am facing the same issue with unsupported platform error. Has there been a fix provided for it yet? :neutral:

I think this isn’t fixed yet. I encountered the same issue.

Hi all,

somehow it does not work for me.
I can see the popup login window, but nothing happened …

I got this error msg:

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

my code look like this (on Mac)

WebUI.openBrowser(‘https://www.xyz.com’)

WebUI.authenticate(‘https://www.xyz.com’, ‘userName’, ‘myPWD’, 10)

Could someone help ?

Thanks & cheers

Loren

Hi Alejandro,

This is basically htaccess authentication, and as a workaround the credentials can be provided in the URL directly.

URL would then be: https://Username:Password@dev.mcdonalds.konoss.net/

//Sample script
WebUI.openBrowser('https://Username:Password@dev.mcdonalds.konoss.net/')

Note: Here the ‘Username’ and ‘Password’ need to be valid credentials

Let me know if that doesn’t work out.

Thank you.

1 Like

Nitin Chary said:

Hi Alejandro,

This is basically htaccess authentication, and as a workaround the credentials can be provided in the URL directly.

URL would then be: https://Username:Password@dev.mcdonalds.konoss.net/

//Sample script

WebUI.openBrowser(‘https://Username:Password@dev.mcdonalds.konoss.net/’)


  

Note: Here the 'Username' and 'Password' need to be valid credentials

Let me know if that doesn't work out.

Thank you.

  

Hi Nitin,

Thank you for this information this is working for me fine.

Hi @Nitin Chary
I already use this workaround and it works fine. Thanks for sharing it what I should have done in my last post.
But on some of our projects, it is not enough as we need these credentials in the HTTP header…