summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/mavlushechka/a1qa/pages/GamePage.java5
-rw-r--r--src/main/resources/testData.json3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/mavlushechka/a1qa/pages/GamePage.java b/src/main/java/com/mavlushechka/a1qa/pages/GamePage.java
index 63db5de..2e80d32 100644
--- a/src/main/java/com/mavlushechka/a1qa/pages/GamePage.java
+++ b/src/main/java/com/mavlushechka/a1qa/pages/GamePage.java
@@ -11,6 +11,7 @@ public class GamePage extends BaseForm {
private final SecondCardForm secondCardForm = new SecondCardForm();
private final HelpForm helpForm = new HelpForm();
private final CookiesForm cookiesForm = new CookiesForm();
+ private final Label timer = new Label(By.xpath("//*[contains(@class, 'timer')]"), "Timer");
public GamePage() {
@@ -53,4 +54,8 @@ public class GamePage extends BaseForm {
return cookiesForm.isHidden();
}
+ public String getTimerText() {
+ return timer.getText();
+ }
+
}
diff --git a/src/main/resources/testData.json b/src/main/resources/testData.json
index e6d034b..987011f 100644
--- a/src/main/resources/testData.json
+++ b/src/main/resources/testData.json
@@ -1,5 +1,8 @@
{
"testCase1": {
"interestsToChoose": 3
+ },
+ "testCase4": {
+ "timerStartingText": "00:00:00"
}
} \ No newline at end of file