diff options
author | Artur Signell <artur@vaadin.com> | 2015-02-05 11:57:47 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-02-05 11:27:32 +0000 |
commit | 4204410dadb1947fec0e933f0d910bfa073022af (patch) | |
tree | 9d3632cd5075ec99838609d64cb06782dfd5e308 /uitest/src/com/vaadin/tests/tb3/newelements | |
parent | 0ad0caae93085a5ad6e1146f445583fbb9aeec4e (diff) | |
download | vaadin-framework-4204410dadb1947fec0e933f0d910bfa073022af.tar.gz vaadin-framework-4204410dadb1947fec0e933f0d910bfa073022af.zip |
Make test work on all browsers (#13775)
Change-Id: I282b3d5b14a5ec09060491bd9833c76f061bbf56
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3/newelements')
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/newelements/FixedNotificationElement.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/newelements/FixedNotificationElement.java b/uitest/src/com/vaadin/tests/tb3/newelements/FixedNotificationElement.java new file mode 100644 index 0000000000..db20016486 --- /dev/null +++ b/uitest/src/com/vaadin/tests/tb3/newelements/FixedNotificationElement.java @@ -0,0 +1,16 @@ +package com.vaadin.tests.tb3.newelements; + +import org.openqa.selenium.WebElement; + +import com.vaadin.testbench.By; +import com.vaadin.testbench.elements.NotificationElement; +import com.vaadin.testbench.elements.ServerClass; + +@ServerClass("com.vaadin.ui.Notification") +public class FixedNotificationElement extends NotificationElement { + public String getCaption() { + WebElement popup = findElement(By.className("popupContent")); + WebElement caption = popup.findElement(By.tagName("h1")); + return caption.getText(); + } +} |