how to use capybara has_text

前端 未结 1 392
清酒与你
清酒与你 2021-01-16 02:17

So now I\'ve got cucumber/capybara/selenium hitting a google app script, which is great, but for some reason I can\'t seem to check for text in the body of the page in the w

相关标签:
1条回答
  • 2021-01-16 03:08

    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.

    0 讨论(0)
提交回复
热议问题