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