Stylesheets not applied in Chrome

只谈情不闲聊 提交于 2019-11-28 12:40:56

问题


Using Watir with Chromedriver. When running tests (not headless), my stylesheets are not applied. When running chrome normally (not testing) my stylesheets show up.

What's the deal? This didn't happen yesterday.

Specs:

  • Ubuntu 16.04 LTS
  • Chrome Version 59.0.3071.104 (Official Build) (64-bit)
  • ChromeDriver 2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57)
  • watir 6.2.1
  • ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

回答1:


I assume that you are accessing the application-under-test via embedded credentials. Chrome v59 removes support for embedded credentials in subresource requests. Here's what the documentation says:

Drop support for embedded credentials in subresource requests. (removed)

We should block requests for subresources that contain embedded credentials (e.g. "http://ima_user:hunter2@example.com/yay.tiff"). Such resources would be handled as network errors



来源:https://stackoverflow.com/questions/44658869/stylesheets-not-applied-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!