@@ -0,0 +1,2970 @@
+/*%0A * Copyright (C) 2017 the original author or authors.%0A *%0A * This file is part of jBB Application Project.%0A *%0A *  Licensed under the Apache License, Version 2.0 (the %22License%22);%0A *  You may obtain a copy of the License at%0A *        http://www.apache.org/licenses/LICENSE-2.0%0A */%0A%0Apackage org.jbb.e2e.serenity.registration;%0A%0Aimport net.serenitybdd.core.pages.PageObject;%0Aimport net.thucydides.core.annotations.DefaultUrl;%0A%0Aimport org.openqa.selenium.WebElement;%0Aimport org.openqa.selenium.support.FindBy;%0Aimport org.openqa.selenium.support.FindBys;%0A%0A@DefaultUrl(RegistrationPage.URL)%0Apublic class RegistrationPage extends PageObject %7B%0A    public static final String URL = %22/register%22;%0A%0A    @FindBy(id = %22username%22)%0A    WebElement usernameTextField;%0A%0A    @FindBy(id = %22displayedName%22)%0A    WebElement displayedNameField;%0A%0A    @FindBy(id = %22email%22)%0A    WebElement emailField;%0A%0A    @FindBy(id = %22password%22)%0A    WebElement passwordField;%0A%0A    @FindBy(id = %22passwordAgain%22)%0A    WebElement passwordAgainField;%0A%0A    @FindBys(%7B@FindBy(xpath = %22//button%5Bcontains(text(),'Send')%5D%22)%7D)%0A    WebElement registerButton;%0A%0A    public void typeUsername(String username) %7B%0A        usernameTextField.sendKeys(username);%0A    %7D%0A%0A    public void typeDisplayedName(String displayedName) %7B%0A        displayedNameField.sendKeys(displayedName);%0A    %7D%0A%0A    public void typeEmail(String email) %7B%0A        emailField.sendKeys(email);%0A    %7D%0A%0A    public void typePassword(String password) %7B%0A        passwordField.sendKeys(password);%0A    %7D%0A%0A    public void typePasswordAgain(String passwordAgain) %7B%0A        passwordAgainField.sendKeys(passwordAgain);%0A    %7D%0A%0A    public void sendRegistrationForm() %7B%0A        registerButton.click();%0A    %7D%0A%0A    public void containsConfirmation() %7B%0A        shouldContainText(%22Registration completed!%22);%0A    %7D%0A%0A    public void containsInfoAboutIncorrectUsernameLength() %7B%0A        shouldContainText(%22size must be between 3 and 20%22);%0A    %7D%0A%0A    public void containsInfoAboutWhiteCharactersInUsername() %7B%0A        shouldContainText(%22Username cannot contain spaces and other white characters%22);%0A    %7D%0A%0A    public void containsInfoAboutIncorrectDisplayedNameLength() %7B%0A        shouldContainText(%22size must be between 3 and 64%22);%0A    %7D%0A%0A    public void containsInfoAboutIncorrectEmail() %7B%0A        shouldContainText(%22not a well-formed email address%22);%0A    %7D%0A%0A    public void containsInfoAboutBusyUsername() %7B%0A        shouldContainText(%22This username is already taken%22);%0A    %7D%0A%0A    public void containsInfoAboutBusyDisplayedName() %7B%0A        shouldContainText(%22This displayed name is already taken%22);%0A    %7D%0A%0A    public void containsInfoAboutBusyEmail() %7B%0A        shouldContainText(%22This e-mail is already used by another member%22);%0A    %7D%0A%0A    public void containsInfoAboutIncorrectLengthOfPassword() %7B%0A        shouldContainText(%22Password has incorrect length%22);%0A    %7D%0A%0A    public void containsInfoAboutNotMatchingPasswords() %7B%0A        shouldContainText(%22Passwords don't match%22);%0A    %7D%0A%7D%0A

add missing RegistrationPage