Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add clarifying note about disabled elements #5520

Merged
merged 4 commits into from
Nov 20, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/guides/core-concepts/interacting-with-elements.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ will perform the action.

### Disability

Cypress checks whether an element's `disabled` property is `true`.
Cypress checks whether an element's `disabled` property is `true`. Note that
this property only affects
[form controls](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled)
such as `button` or `input`. Setting a `disabled` attribute on other elements will
jordanpowell88 marked this conversation as resolved.
Show resolved Hide resolved
have no effect on a user's ability to interact with them,
and won't impact Cypress actionability checks.

### Detached

Expand Down