Skip to content

Support aria-label/aria-labelledBy in click_link/click_button - #320

Merged
germsvel merged 1 commit into
mainfrom
support-aria-label-in-click-actions
Aug 2, 2026
Merged

Support aria-label/aria-labelledBy in click_link/click_button#320
germsvel merged 1 commit into
mainfrom
support-aria-label-in-click-actions

Conversation

@germsvel

@germsvel germsvel commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Closes #243

#319 added support for finding elements by aria-label and aria-labelledby for form actions and assertions (basically, anything that was using Query.find_by_label)

Our click_link and click_button weren't using that helper, so they did not get the same treatment. This commit updates those helpers so they too support finding by aria-label and aria-labelledBy

Recent commit added support for finding elements by `aria-label` and
`Bria-labelledBy` for form actions and assertions (basically, anything
that was using `Query.find_by_label`)

Our `click_link` and `click_button` weren't using that helper, so they
did not get the same treatment. This commit updates those helpers so
they too support finding by `aria-label` and `aria-labelledBy`
@germsvel
germsvel merged commit 91a9d30 into main Aug 2, 2026
2 checks passed
@germsvel
germsvel deleted the support-aria-label-in-click-actions branch August 2, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Find by aria-label

1 participant