blob: 8835724486807ac0699cfcb28213f5a489b2e88b (
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
43
44
45
46
47
|
package com.mavlushechka.a1qa.pages;
import com.mavlushechka.a1qa.elements.Label;
import com.mavlushechka.a1qa.models.Interest;
import com.mavlushechka.a1qa.models.User;
import org.openqa.selenium.By;
public class GamePage extends BaseForm {
private final FirstCardForm firstCardForm = new FirstCardForm();
private final SecondCardForm secondCardForm = new SecondCardForm();
private final HelpForm helpForm = new HelpForm();
public GamePage() {
super(new Label(By.xpath("//*[@id='app']//*[contains(@class, 'game')]"), "Game view"), "Game");
}
public boolean isFirstCardFormOpened() {
return firstCardForm.isOpened();
}
public void performAuthorization(User user) {
firstCardForm.performAuthorization(user);
}
public boolean isSecondCardOpened() {
return secondCardForm.isOpened();
}
public void select(Interest interest) {
secondCardForm.select(interest);
}
public void clickDownloadImageButton() {
secondCardForm.clickDownloadImageButton();
}
public void hideHelpForm() {
helpForm.hide();
}
public boolean isHelpFormHidden() {
return helpForm.isHidden();
}
}
|