how to use capybara has_text

孤者浪人 提交于 2019-12-01 12:57:42

In Capybara 2.0 has_text? has only one parameter - content.

type parameter of has_text? (with possible values :all and :visible) appeared in version 2.1 which is currently in beta.

However, Capybara 2.1.0.beta1 is stable and doesn't have any known regression bugs. Currently it's supported only by built-in Selenium and Racktest drivers. At the moment of writing available gem versions of Capybara-Webkit, Poltergeist and Terminus don't support Capybara 2.1.

I use 2.1.0.beta1 so I can recommend you to use it if you use built-in selenium or racktest drivers.

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