HTML页面显示为使用Python + Selenium单元测试生成的UI范围报告HTML损坏

问题描述

HTML页面显示的UI损坏当访问内部(日食)/外部(chrome / firefox等)浏览器时,范围报告HTML。 打开html报告enter image description here

时报告的屏幕截图

解决方法

我通过对所有库使用HTTP over https解决了这个问题。例如,HTML中的所有这些库: https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600 https://cdn.rawgit.com/anshooarora/extentreports/e4f8ea1de961161791c01b99a71a1e17f81125cf/cdn/extent.css https://cdn.rawgit.com/anshooarora/extentreports/c936a26fc8bb9c5fc0253b5bc6f289e1d14bb595/cdn/extent.js

可以更改为: http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600 http://cdn.rawgit.com/anshooarora/extentreports/e4f8ea1de961161791c01b99a71a1e17f81125cf/cdn/extent.css http://cdn.rawgit.com/anshooarora/extentreports/c936a26fc8bb9c5fc0253b5bc6f289e1d14bb595/cdn/extent.js

还有:

这个小小的变化解决了我的问题。
感谢您的帮助。