9101112131415161718
public PageTitleAppearsCondition(String newPageTitle) { this.title = newPageTitle; } public boolean isSatisfied() { if(new SeleniumHelper().getTitle().equals(title)){ return true; } return false; }
10111213141516
public class Link { private WebElement link; public Link(By by) { this.link = new SeleniumHelper().findElement(by); }
14151617181920
public class LoginPage extends Commands { private SeleniumHelper helper; public LoginPage() { helper = new SeleniumHelper(); }
6789101112
public class HomePage{ private SeleniumHelper helper; public HomePage() { helper = new SeleniumHelper(); }
678910111213
public class RegistrationPage { private SeleniumHelper helper; private Locators locators; public RegistrationPage() { this.helper = new SeleniumHelper(); this.locators = new Locators(); }
7891011121314
public class ElementIsFound implements Condition { private By locator; private WebDriver driver; public ElementIsFound(By locator) { this.locator = locator; this.driver = new SeleniumHelper().getDriver(); }