summaryrefslogtreecommitdiff
path: root/src/main/java/com/mavlushechka/a1qa/pages/HomePage.java
blob: ee52ba9223436409653cd1fddceaa8336a212c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.mavlushechka.a1qa.pages;

import com.mavlushechka.a1qa.elements.Button;
import com.mavlushechka.a1qa.elements.Label;
import org.openqa.selenium.By;

public class HomePage extends BaseForm {

    private final Button nextPageButton = new Button(By.xpath("//a[contains(@class, 'start__link')]"), "Next page");


    public HomePage() {
        super(new Label(By.xpath("//*[@id='app']//*[contains(@class, 'start')]"), "App container"), "Home");
    }

    public void clickNextPageButton() {
        nextPageButton.click();
    }

}