これは使える/“expect(page).to have_selector('input', count: 12)”

at_homeat_home のブックマーク 2014/01/07 14:59

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

How to assert number of elements using Capybara with proper error message?

    I know that in Capybara, you can do something like this: page.should have_css("ol li", :count => 2) However, assuming that page has for instance only one matching element, the error is not very des...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう