How to handle basic authentication with protractor?

前端 未结 7 1117
长情又很酷
长情又很酷 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

    If you're reading this in 2019, with Angular 7/8, consider this:

    https://www.npmjs.com/package/authenticator-browser-extension

    I find it much easier than the solutions suggested above.

提交回复
热议问题