summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-09-27 13:44:00 +0300
committerVaadin Code Review <review@vaadin.com>2013-10-08 08:59:38 +0000
commit4f3cc4cef8c75a6f3a6af26e95509247a84c08b8 (patch)
tree1e7bc47ba093ca4569d47c5002a4913c6eefbdd8 /uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
parent3cba6bf847df3fab77cec04dcd2586c76316fd74 (diff)
downloadvaadin-framework-4f3cc4cef8c75a6f3a6af26e95509247a84c08b8.tar.gz
vaadin-framework-4f3cc4cef8c75a6f3a6af26e95509247a84c08b8.zip
Converted push test to TB3 (#12226, #12522)
Change-Id: Ia12b35ef6beed0bf2f534f2c9505b22ce7b3c7c3
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java')
-rw-r--r--uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
index 054492444d..5d5f5fae31 100644
--- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
+++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
@@ -37,6 +37,7 @@ import org.openqa.selenium.support.ui.WebDriverWait;
import com.vaadin.server.LegacyApplication;
import com.vaadin.testbench.TestBench;
import com.vaadin.testbench.TestBenchTestCase;
+import com.vaadin.tests.components.AbstractTestUIWithLog;
import com.vaadin.ui.UI;
/**
@@ -298,6 +299,30 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
}
/**
+ * For tests extending {@link AbstractTestUIWithLog}, returns the element
+ * for the Nth log row
+ *
+ * @param rowNr
+ * The log row to retrieve
+ * @return the Nth log row
+ */
+ protected WebElement getLogRowElement(int rowNr) {
+ return vaadinElementById("Log_row_" + rowNr);
+ }
+
+ /**
+ * For tests extending {@link AbstractTestUIWithLog}, returns the text in
+ * the Nth log row
+ *
+ * @param rowNr
+ * The log row to retrieve text for
+ * @return the text in the log row
+ */
+ protected String getLogRow(int rowNr) {
+ return getLogRowElement(rowNr).getText();
+ }
+
+ /**
* Returns the path that should be used for the test. The path contains the
* full path (appended to hostname+port) and must start with a slash.
*