Hi Team,
I am using “WebUI.authenticate” to authenticate my application.
It gives me this error:
Unable to navigate to authenticated page (Root cause: org.openqa.selenium.WebDriverException: unknown error: unhandled inspector error: {“code”:-32000,“message”:“Cannot navigate to invalid URL”}
URL I am trying to access is: http://optimuscf.staticso2.com/PAMP1111
Sorry but I can not disclose the password, just to let you know that my password contains “@” symbol, is it causing the problem?
Please suggest.
Hi Jagjeet,
Yes, I think there may be a problem when you use (at) sign - I don’t know how Katalon uses it internally, but generally, Basic auth can be performed as https://username:password@yoursite.com and your (at) sign may make a mess.
Try to use HEX representation of (at) which is %40 - so if your password is “myP@ssword”, rather use “myP%40ssword”
2 Likes
Once I have ever tried WebUI.authenticate()
and found it does not work.
I’ve tested using format
WebUI.navigateToUrl('http://user:pass@host')
and it works.
3 Likes