-
-
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]: Text transformation issue with text-transform: capitalize;
using Selenium WebDriver with Firefox 127.0.2
#14271
Comments
@Usielrivas, 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! |
To repeat what I've said on mozilla/geckodriver#2185 (comment): In Firefox 127 we landed a fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1888004. That included an update of the Selenium atoms for 'getVisibleText' to revision 33c6b7841a59aaaad55744909c0600f066fd5593. This update includes the changes from #13792. @diemol could your patch have caused a regression for this atom and behavior for text-transform: capitalize? There might have been a misunderstanding at that time, and I apologize for that. The change I proposed was only relevant to my case, and I didn't test any other scenarios. I assume there is no test in the Selenium code base that checks for accented characters, which would have caught this regression. |
@whimboo what change is needed in the Atoms? |
I cannot exactly tell, but I would suggest to revert the change and then find the piece in the regex to update to keep the other test passing. |
What happened?
Description:
There is an issue with the
text-transform: capitalize;
CSS property when using Selenium WebDriver with Firefox 127.0.2. The text transformation does not handle accented characters correctly, resulting in incorrect capitalization.Steps to Reproduce:
geckodriver 0.34
and place it in a specific directory.selenium_example.js
):index.html
):Expected Behavior:
The output should be:
Actual Behavior:
The output is:
Additional Information:
This issue started occurring after updating to Firefox 127.0.2. It appears that the
text-transform: capitalize;
CSS property does not handle accented characters correctly.Console Output:
No errors in the console.
How can we reproduce the issue?
Relevant log output
Operating System
Fedora 40
Selenium version
4.22.0
What are the browser(s) and version(s) where you see this issue?
Firefox: 127.0.2
What are the browser driver(s) and version(s) where you see this issue?
geckodriver: 0.34.0 (c44f0d09630a 2024-01-02 15:36 +0000)
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: