本文介绍了切换到Webdrivers gem后的弃用警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据建议此处,我在Rails 5.2上将chromedriver-helper替换为webdrivers具有RSpec 3.8的应用程序.

As suggested here, I have replaced chromedriver-helper with webdrivers on a Rails 5.2 app with RSpec 3.8.

根据此帖子,它应该是一个简单的替换在更新我的Gemfile后,规格工作正常.但是,我收到了一堆弃用警告

According to this post, it should a simple replacement and after updating my Gemfile the specs work. However, I get a bunch of deprecation warnings

Selenium Webdriver已更新为最新版本.

 -  selenium-webdriver (3.141.0)
 +  selenium-webdriver (3.141.5926)

我在这里错过了什么吗?

Am I missing anything here?

推荐答案

webdrivers替换chromedriver-helper时,我也遇到了这个问题,但是将Capybara更新到最新版本(3.18.0)可以解决此问题.

I also experienced this issue when replacing chromedriver-helper with webdrivers, however updating Capybara to the latest version (3.18.0) resolved it.

这篇关于切换到Webdrivers gem后的弃用警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 10:13