summaryrefslogtreecommitdiffstats
path: root/testbench-api
diff options
context:
space:
mode:
Diffstat (limited to 'testbench-api')
-rw-r--r--testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java
index a95cc58106..b91f3994d1 100644
--- a/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java
+++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java
@@ -15,6 +15,8 @@
*/
package com.vaadin.testbench.elements;
+import java.util.Locale;
+
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.By;
@@ -69,7 +71,7 @@ public class AbstractComponentElement extends AbstractElement {
String[] styles = style.split(";");
for (String stylePart : styles) {
// IE8 has uppercased styles
- String lowercasePart = stylePart.toLowerCase();
+ String lowercasePart = stylePart.toLowerCase(Locale.ROOT);
if (lowercasePart.startsWith(styleName + ":")) {
return lowercasePart.substring(styleName.length() + 1).trim();
}