package com.mavlushechka.a1qa.project.pages; import aquality.selenium.browser.AqualityServices; import com.mavlushechka.a1qa.framework.pages.BaseForm; import com.mavlushechka.a1qa.project.models.Comment; import com.mavlushechka.a1qa.project.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 containsPost(Post post) { return profileWallForm.containsPost(post); } public boolean containsComment(Comment comment) { return profileWallForm.containsComment(comment); } public boolean notContainsPost(Post post) { return profileWallForm.notContainsPost(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); } }