8

enter image description here

I am making test cases using Katalon Studio. The problem is that when I launch the test case on Firefox it shows me the "Authentication Required" popup. Instead when I use Chrome or Explorer it doesn't happen. How can I get rid of this popup when I use Firefox?

Tapas Bose
  • 25,780
  • 71
  • 202
  • 317
nix86
  • 2,351
  • 7
  • 27
  • 59

2 Answers2

7

It should be: WebUI.openBrowser("http://username:password@WebsiteURL") instead of WebUI.openBrowser("username:password@WebsiteURL")

Zarashima
  • 417
  • 4
  • 9
  • 1
    Have you tried it directly on your browser without using Katalon Studio? Is it the same? – Zarashima Jul 25 '17 at 11:03
  • Yes. If I don't use Katalon Studio the authentication required popup doesn't appear. – nix86 Jul 26 '17 at 10:41
  • If this method failed, one possiblity is that your password contain special character. In that case you can use `import java.net.URLEncoder;` and then `def password = "myp@ssword"` `password = URLEncoder.encode(password , StandardCharsets.UTF_8.toString())` – Ng Sek Long Apr 01 '20 at 07:24
-1

Please try WebUI.Authenticate(url, username ,passsword, timeoutseconds).

That should do the job, did it for me .

Oleksii Filonenko
  • 1,201
  • 1
  • 15
  • 23