blob: ae99f22e1dc8d1cc22f7771d7d78024f163cd2f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
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);
}
}
|