You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Install Node.js.
Create a new project and install Selenium WebDriver.
npm init -y
npm install selenium-webdriver // last version
Download geckodriver 0.34 and place it in a specific directory.
Create the following JavaScript script (selenium_example.js):
const{ Builder, By, until }=require('selenium-webdriver');constfirefox=require('selenium-webdriver/firefox');constpath=require('path');constgeckodriverPath=path.join(process.env.HOME,'gecko/geckodriver');// Adjust this path(asyncfunctionexample(){letoptions=newfirefox.Options();options.setBinary(geckodriverPath);letdriver=newBuilder().forBrowser('firefox').setFirefoxOptions(options).build();try{consturl='file:///home/user/test/bug/index.html';awaitdriver.get(url);awaitdriver.wait(until.elementLocated(By.tagName('h1')),10000);letelement=awaitdriver.findElement(By.tagName('h1'));lettext=awaitelement.getText();console.log(`response: ${text}`);}finally{awaitdriver.quit();}})();
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.
The text was updated successfully, but these errors were encountered:
Usielrivas
changed the title
Text transformation issue with text-transform: capitalize; using Selenium WebDriver with Firefox 127.0.2
BUG: Text transformation issue with text-transform: capitalize; using Selenium WebDriver with Firefox 127.0.2
Jul 8, 2024
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.
As it looks like we should file a new issue on the Selenium repository to get this issue fixed. @Usielrivas because you found the issue would you like to do that?
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.
The text was updated successfully, but these errors were encountered: