Skip to content

Files

Latest commit

 

History

History
25 lines (16 loc) · 463 Bytes

Capybara-AmbiguousClick.md

File metadata and controls

25 lines (16 loc) · 463 Bytes

Pattern: Ambiguous click

Issue: -

Description

Specify the exact target to click on.

In projects where accessibility needs to be considered, it is crucial to specify the click target precisely.

Examples

# bad
click_link_or_button('foo')
click_on('foo')

# good
click_link('foo')
click_button('foo')

Further Reading