summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMavlushechka <mavlushechka@gmail.com>2022-09-22 00:44:38 +0500
committerMavlushechka <mavlushechka@gmail.com>2022-09-22 00:44:38 +0500
commit3727b96adfa5ec3da6a78896274a572047e69561 (patch)
tree069e7fa4d18c75f8c6b804d3db512b3e9db951bd /src/main
parent2391125f08a718306192622da1dcacca86d1a348 (diff)
Solve the 4th test case
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