diff options
author | Artur Signell <artur@vaadin.com> | 2015-06-08 08:42:34 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-06-09 08:20:36 +0000 |
commit | 94a943baaef07fd5a9d2e7a5b317ffcc297a1f10 (patch) | |
tree | 591d47e7cc01712b3e48829084a940aacd49ba7b /uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java | |
parent | 479f1c55e0d4958c6d4fc3aa0c9aca6442b89371 (diff) | |
download | vaadin-framework-94a943baaef07fd5a9d2e7a5b317ffcc297a1f10.tar.gz vaadin-framework-94a943baaef07fd5a9d2e7a5b317ffcc297a1f10.zip |
Fix test broken by #16556
Change-Id: I4e0883c58c425fc6287212a97f740016223914b5
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java index 075319103b..2e33cc2741 100644 --- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java +++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java @@ -1044,4 +1044,25 @@ public abstract class AbstractTB3Test extends ParallelTest { } selectMenu(menuCaptions[menuCaptions.length - 1], true); } + + /** + * Asserts that an element is present + * + * @param by + * the locatore for the element + */ + protected void assertElementPresent(By by) { + Assert.assertTrue("Element is not present", isElementPresent(by)); + } + + /** + * Asserts that an element is not present + * + * @param by + * the locatore for the element + */ + protected void assertElementNotPresent(By by) { + Assert.assertFalse("Element is present", isElementPresent(by)); + } + } |