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
Add ability to perform click at disabled elements #2635
Comments
asolntsev
added a commit
that referenced
this issue
Feb 2, 2024
asolntsev
added a commit
that referenced
this issue
Feb 2, 2024
asolntsev
added a commit
that referenced
this issue
Feb 2, 2024
asolntsev
added a commit
that referenced
this issue
Feb 3, 2024
asolntsev
added a commit
that referenced
this issue
Feb 4, 2024
NB! It's important to call `e.click()`, not `actions.moveToElement(e, 0, 0).click().perform()` because the latter doesn't check that the element is covered by other element, and doesn't throw "element is not clickable at point. Other element would receive the click" error.
asolntsev
added a commit
that referenced
this issue
Feb 4, 2024
asolntsev
added a commit
that referenced
this issue
Feb 4, 2024
asolntsev
added a commit
that referenced
this issue
Feb 4, 2024
NB! It's important to call `e.click()`, not `actions.moveToElement(e, 0, 0).click().perform()` because the latter doesn't check that the element is covered by other element, and doesn't throw "element is not clickable at point. Other element would receive the click" error.
asolntsev
added a commit
that referenced
this issue
Feb 4, 2024
asolntsev
added a commit
that referenced
this issue
Feb 4, 2024
asolntsev
added a commit
that referenced
this issue
Feb 4, 2024
NB! It's important to call `e.click()`, not `actions.moveToElement(e, 0, 0).click().perform()` because the latter doesn't check that the element is covered by other element, and doesn't throw "element is not clickable at point. Other element would receive the click" error.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem
Currently Selenide requires element interactable state to perform click:
There are some use cases when we need to click at visible, but disabled element. For example, we may want to click at disabled button to reset focus from an editbox or to check that nothing happened.
Details
The idea is to add new option for click
allowDisabled()
.Example of usage:
Tell us about your environment
Code To Reproduce Issue
The text was updated successfully, but these errors were encountered: