-
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]: element.tagName.toUpperCase is not a function #30616
Comments
@juvarabrera Thank you for the issue. The problem is most likely during the search for the button, so the element that triggers Unfortunately, without a repro we won't be able to help, because we need to see the markup that triggers this unexpected behavior. If you could provide a repro, perhaps removing parts of the page while the issue still reproduces, that would be great! |
This is what
|
@juvarabrera @dgozman i'm facing the same issue "javascript error: a.tagName.toUpperCase is not a function", is there any solution we have? |
@juvarabrera Thank you for the snippet, I can repro. Investigation notes:
|
Version
1.40.1
Steps to reproduce
We have a big web application and we've been using Playwright for almost all pages. But there is one particular page that's showing this error in Playwright.
I have this snippet that clicks this button
The button is visible in plain sight.
Expected behavior
I just expect that the button is clicked. I've been using the
.click()
function to click thousands of buttons but any buttons in this particular page is not working. I'm not a dev that's working on this particular page so I'm not sure what's differentActual behavior
It does not wait for the timeout to finish (10 seconds). It just shows the error right away.
Additional context
The Save button.
All buttons are like this in other pages but it works on other pages.
I unfortunately cannot disclose the web application for you to try but please let me know what information you need to debug this.
Environment
The text was updated successfully, but these errors were encountered: