-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Bug]: toBeEditable() returns true when locator is not editable #33697
Comments
The issue you're facing happens because the In HTML, only certain elements (like Why is this happening?Playwright's SolutionTo fix this, you have two options depending on your requirements:
Summary
I hope this helps resolve the issue you encountered. |
Solution 1 - It won't work in my case because it is a partner site, and our development team has no control over them. For Solution 2 - I tried this but this is not working, playwrights says expected: not to be editable, but the locator is editable. |
To clarify, you do not need Here are some steps to resolve this:
By using these approaches, you can ensure that Playwright recognizes the |
Thank you for the suggestions. My html page is very simple, there is no CSS or JavaScript involved, as follow: I tried your second and third approaches, by using toBeDisalbed() - playwright message: |
Version
Tried all versions from: 1.45.0 to 1.49.0
Steps to reproduce
Here is my simple html page:
And here is my playwright script:
Expected behavior
Expected locator not to be editable
Actual behavior
Playwright says locator is editable
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: