TypeError:undefined不是一个函数评估'navigator.sendBeacon'

问题描述

运行规格时,我遇到此错误。当我调试规范时,我知道当时无论在哪里使用click_button "login",rspec都会将此错误记录到日志中。 测试用例已通过,但在travis CI上以及在本地上,都会引发此错误TypeError: undefined is not a function (evaluating 'navigator.sendbeacon')

rspec-core: 3.8.2

phantomjs - 2.1.1.0

testing using Capybara-3.28.0

错误

Run options:
  include {:locations=>{"./spec/features/manager/manager_views_respose_rate_spec.rb"=>[63]}}
  exclude {:I_AM_broKEN=>true,:slow=>true}
Capybara starting Puma...
* Version 4.1.0,codename: Fourth and One
* Min threads: 0,max threads: 4
* Listening on tcp://127.0.0.1:41039
TypeError: undefined is not a function (evaluating 'navigator.sendbeacon')
TypeError: undefined is not a function (evaluating 'navigator.sendbeacon')
TypeError: undefined is not a function (evaluating 'navigator.sendbeacon')
.

我不知道为什么会引发此错误以及如何解决错误,我也在网上进行了研究,但没有任何解决方案。 我可以挽救travis CI上的这个特定错误吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...