diff options
Diffstat (limited to 'testbench-api')
-rw-r--r-- | testbench-api/src/main/java/com/vaadin/testbench/elements/AbstractComponentElement.java | 2 |
1 files changed, 1 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 e219b53a04..7a4963d4ab 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 @@ -36,7 +36,7 @@ public class AbstractComponentElement extends AbstractElement { captionId = getAttribute(GWT_ID_ATTRIBUTE); // IE8 getAttribute returns empty string instead of null // when there is no attribute with specified name - if (captionId == null || captionId.equals("")) { + if (captionId == null || captionId.isEmpty()) { WebElement elem = findElement( By.xpath(".//*[@" + GWT_ID_ATTRIBUTE + "]")); captionId = elem.getAttribute(GWT_ID_ATTRIBUTE); |