-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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]: clear() method not clearing input on react component #11739
Comments
@mrpet88, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Looks like issue is you've cached Try finding it again through Some pseudo code below....
Could also be that you're not locating the right element - that takes input |
If you mean something like this:
|
Thanks for the follow up - Dug into the example; In the screenshot the clear() doesn't work because There's also the There's ways around this using javascript when needed; https://stackoverflow.com/questions/17237772/html-how-to-clear-input-using-javascript setting Working example below; Hope this solves! Keen to hear if there's better solutions :) |
@mrpet88 I did not understand this part. If you use Serenity-BDD works? But above you mentioned it did not work with Selenium 3. |
Yes, so I found out, that it was working with |
@titusfortner no, I did not, I forgot, sorry. Anyway, I just shared the information with them
|
@mrpet88 Thank you for providing your repository to triage this. I was able to reproduce it for Chrome, Edge, and Safari. But it works in Firefox. This shows that Selenium is sending the command and something in the browser is not doing the right thing when it comes to a React component. Maybe updating the atoms over there will help, but I recommend reporting this issue to those browsers. I will leave some links below where you can report it. |
Hi, @mrpet88. You can see if the feature is passing in the Web Platform Tests. If it is something new, please create an issue with the ChromeDriver team. |
Hi, @mrpet88. You can see if the feature is passing in the Web Platform Tests. If it is something new, please create an Issue with the Safari team. Feel free to comment the issues that you raise back in this issue. Thank you. |
Hi, @mrpet88. You can see if the feature is passing in the Web Platform Tests. If it is something new, please create an Issue with the MSEdgeDriver team. Feel free to comment the issues that you raise back in this issue. Thank you. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
It seems that clear() method is not working properly with latest version of selenium, in React components. Since I can not provide much details from my company's project, I created a repository, where the issue is reproducible.
Steps:
Result:
Characters are being send next to the previous input.
More Info:
Image:
How can we reproduce the issue?
Relevant log output
Operating System
macOS
Selenium version
selenium-java-4.8.0
What are the browser(s) and version(s) where you see this issue?
Chrome 110.0.5481.77
What are the browser driver(s) and version(s) where you see this issue?
N/A
Are you using Selenium Grid?
N/A
The text was updated successfully, but these errors were encountered: