summaryrefslogtreecommitdiff
path: root/src/main/java/com/mavlushechka/a1qa/pages/ProfilePage.java
diff options
context:
space:
mode:
authorMavlushechka <mavlushechka@gmail.com>2022-10-07 23:46:46 +0500
committerMavlushechka <mavlushechka@gmail.com>2022-10-07 23:46:46 +0500
commitf8501d374dbd39a66078bad11384ea241848acc6 (patch)
tree41deb41375982e3db1d4071117dcf22377145ab8 /src/main/java/com/mavlushechka/a1qa/pages/ProfilePage.java
parent4495c73482a9fb3bdb87a75816974602e833278e (diff)
Solve 1st test case
Diffstat (limited to 'src/main/java/com/mavlushechka/a1qa/pages/ProfilePage.java')
-rw-r--r--src/main/java/com/mavlushechka/a1qa/pages/ProfilePage.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/main/java/com/mavlushechka/a1qa/pages/ProfilePage.java b/src/main/java/com/mavlushechka/a1qa/pages/ProfilePage.java
new file mode 100644
index 0000000..816517d
--- /dev/null
+++ b/src/main/java/com/mavlushechka/a1qa/pages/ProfilePage.java
@@ -0,0 +1,41 @@
+package com.mavlushechka.a1qa.pages;
+
+import aquality.selenium.browser.AqualityServices;
+import com.mavlushechka.a1qa.models.Comment;
+import com.mavlushechka.a1qa.models.Post;
+import org.openqa.selenium.By;
+
+public class ProfilePage extends BaseForm {
+
+ private final ProfileWallForm profileWallForm = new ProfileWallForm();
+
+
+ public ProfilePage() {
+ super(AqualityServices.getElementFactory().getLabel(By.id("profile"), "Profile"), "Profile");
+ }
+
+ public boolean contains(Post post) {
+ return profileWallForm.contains(post);
+ }
+
+ public boolean contains(Comment comment) {
+ return profileWallForm.contains(comment);
+ }
+
+ public boolean notContains(Post post) {
+ return profileWallForm.notContains(post);
+ }
+
+ public void clickPostLikeButton(Post post) {
+ profileWallForm.clickPostLikeButton(post);
+ }
+
+ public void waitForPostUpdate(Post post) {
+ profileWallForm.waitForPostUpdate(post);
+ }
+
+ public void waitForPostDelete(Post post) {
+ profileWallForm.waitForPostDelete(post);
+ }
+
+}