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.

![Authentication box](https://i.stack.imgur.com/mad9q.png)

I already tried `baseUrl: 'https://username:password@url'` and `capabilities: {
 'browserName': 'chrome',
 'chromeOptions' : {
 args: ['--login-user=foo', '--login-password=bar']
 }
}`

But none if these worked for me. Anyone knows how to do it? I'm having some hard time on it.