Capybara Ambiguity Resolution

前端 未结 9 1295
轮回少年
轮回少年 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:49

    To avoid ambiguous error in cucumber.

    Solution 1

    first("#tag1").click
    

    Solution 2

    Cucumber features/filename.feature --guess
    

提交回复
热议问题