Created tests for the "New" menu
[taxeditor.git] / eu.etaxonomy.taxeditor.test / src / test / java / eu / etaxonomy / taxeditor / test / AbstractEditorTest.java
index ff28acb41d41780d745a683e24a2cc94e7ad6443..f6da7727e270ae6a867c1058ab4c74b2aedf9c90 100644 (file)
@@ -61,5 +61,15 @@ public abstract class AbstractEditorTest {
                return bot.viewByTitle(title);\r
        }\r
        \r
+       public void cancel() {\r
+               clickButton("Cancel");\r
+       }\r
+       \r
+       public void ok() {\r
+               clickButton("OK");\r
+       }\r
        \r
+       public void clickButton(String label) {\r
+               bot.button(label).click();\r
+       }\r
 }\r