Javascript 使用FightinglayoutBugs时Chrome出错

Javascript 使用FightinglayoutBugs时Chrome出错,javascript,Javascript,当使用Selenium WebDriver和FightingLayoutBugs在不同浏览器中加载特定页面时,试图找出布局问题 但在Chrome中,当页面加载时,会出现某些运行时异常 java.lang.RuntimeException: Failed to analyze https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.go

当使用Selenium WebDriver和FightingLayoutBugs在不同浏览器中加载特定页面时,试图找出布局问题 但在Chrome中,当页面加载时,会出现某些运行时异常

java.lang.RuntimeException: Failed to analyze https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1 -- com.googlecode.fightinglayoutbugs.AnimationDetectedException: This is strange: Found animated pixels, although
- all JavaScript animations have been stopped,
- all animated GIF images have been hidden,
- all elements potentially containing animation (like Java Applets, Flash Movies, videos, and iframes) are ignored.
- all CSS animations have been paused, and
- all CSS transitions have been disabled.
Analysis is stopped, so you don't get false alarms.

If you call FightingLayoutBugs.enableDebugMode() before you call FightingLayoutBugs.findLayoutBugsIn(...) you can get more information.
    at com.googlecode.fightinglayoutbugs.FightingLayoutBugs.findLayoutBugsIn(FightingLayoutBugs.java:226)
    at Fightpackage.Fight.f2(Fight.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    at org.testng.TestNG.run(TestNG.java:1057)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Caused by: com.googlecode.fightinglayoutbugs.AnimationDetectedException: This is strange: Found animated pixels, although
- all JavaScript animations have been stopped,
- all animated GIF images have been hidden,
- all elements potentially containing animation (like Java Applets, Flash Movies, videos, and iframes) are ignored.
- all CSS animations have been paused, and
- all CSS transitions have been disabled.
Analysis is stopped, so you don't get false alarms.

    at com.googlecode.fightinglayoutbugs.AnimationAwareTextDetector.detectTextPixelsIn(AnimationAwareTextDetector.java:77)
    at com.googlecode.fightinglayoutbugs.WebPage.getTextPixels(WebPage.java:210)
    at com.googlecode.fightinglayoutbugs.DetectTextNearOrOverlappingHorizontalEdge.findLayoutBugsIn(DetectTextNearOrOverlappingHorizontalEdge.java:38)
    at com.googlecode.fightinglayoutbugs.FightingLayoutBugs.findLayoutBugsIn(FightingLayoutBugs.java:185)
    ... 25 more

从上面提到的错误消息来看,您似乎正在尝试使用Chrome连接到谷歌帐户。 我认为问题在于accounts.google.com上的服务器不可用。 原因可能是DNS查找或只是DNS服务器没有响应,通常是由于几个原因造成的,请检查下面提到的内容,希望它能帮助您解决此问题

  • 检查您节点上的防火墙设置,因为有时Google chrome会阻止访问网络
  • 请尝试重新启动计算机(集线器)、路由器,因为IP不匹配/配置错误也可能是原因之一
  • 检查DNS设置
  • 如果您使用的是代理服务器,请重新检查代理服务器设置,如果您使用的是代理服务器,请确保选中了“为LAN使用代理服务器”