How to handle basic authentication with protractor?

前端 未结 7 1115
长情又很酷
长情又很酷 2020-12-25 13:08

I\'m trying protractor to write a few tests in a non angular application. I have to login in a page trough basic authentication in google chrome, but i have no idea how.

7条回答
  •  失恋的感觉
    2020-12-25 14:10

    In fact you can just set the url as http://username:password@yourdomain.com. Chrome will handle it!

提交回复
热议问题