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); } }