0

I'm trying to use robot framework as a ui test tooling for a website we use internal.

To test different user roles I open the browser with basic authentication (http://user:ww@url). Unfortunately this methode is removed from chrome and chromedriver (http://www.chromestatus.com/feature/5669008342777856) (for the test I use PhantomJS). because of this issue subresource requests are blocked. See image attached.

enter image description here

Because of this issue also js files are blocked and therefore my UI tests don't work properly.

Does anybody have an idee on how to solve this or another way of testing?

4

1 回答 1

0

This issue is being encountered by all browser automation frameworks. This SO answer describes an approach to take a two step approach:

  1. Go to the url with http://user:pass@hostname.ext
  2. Go to the url with http://hostname.ext

The username and password are cached and subsequent visits will reuse it.

于 2017-07-14T17:11:55.520 回答