diff options
author | Artur Signell <artur@vaadin.com> | 2015-08-03 23:02:47 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-08-04 13:15:47 +0000 |
commit | 50e13188aa372b0ad50c7279bcb3f18706897c23 (patch) | |
tree | b05bb4307d5768e37629b1c2ce0ac307930d8087 /uitest/src/com/vaadin/tests/tb3 | |
parent | 3951ba9c2d751e3719699c546f530859d2b593ee (diff) | |
download | vaadin-framework-50e13188aa372b0ad50c7279bcb3f18706897c23.tar.gz vaadin-framework-50e13188aa372b0ad50c7279bcb3f18706897c23.zip |
Attach Window in hierarchy change as required (#18502)
Change-Id: Ia9ca393480b80c19e5391bce034534bde31f3a81
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3')
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/newelements/WindowElement.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/newelements/WindowElement.java b/uitest/src/com/vaadin/tests/tb3/newelements/WindowElement.java index 34344324d0..784d203ab0 100644 --- a/uitest/src/com/vaadin/tests/tb3/newelements/WindowElement.java +++ b/uitest/src/com/vaadin/tests/tb3/newelements/WindowElement.java @@ -14,6 +14,7 @@ public class WindowElement extends com.vaadin.testbench.elements.WindowElement { private final String restoreBoxClass = "v-window-restorebox"; private final String maximizeBoxClass = "v-window-maximizebox"; + private final String closeBoxClass = "v-window-closebox"; public void restore() { if (isMaximized()) { @@ -63,4 +64,13 @@ public class WindowElement extends com.vaadin.testbench.elements.WindowElement { public String getCaption() { return findElement(By.className("v-window-header")).getText(); } + + private WebElement getCloseButton() { + return findElement(By.className(closeBoxClass)); + } + + public void close() { + getCloseButton().click(); + + } } |