Capybara Ambiguity Resolution

前端 未结 9 1323
轮回少年
轮回少年 2020-12-23 13:59

How do I resolve ambiguity in Capybara? For some reason I need links with the same values in a page but I can\'t create a test since I get the error

Failure/         


        
9条回答
  •  心在旅途
    2020-12-23 14:56

    Due to this post, you can fix it via "match" option:

    Capybara.configure do |config|
      config.match = :prefer_exact
    end
    

提交回复
热议问题