use of org.wso2.iot.integration.ui.pages.uesr.NewUserRegisterPage in project product-iots by wso2.
the class NewUserRegistrationTest method userRegisterTest.
@Test(description = "Verify new User registration")
public void userRegisterTest() throws IOException {
LoginPage login = new LoginPage(driver);
NewUserRegisterPage registerTest = login.registerNewUser();
LoginPage loginPage = registerTest.registerUser(Constants.User.Register.FIRST_NAME, Constants.User.Register.LAST_NAME, Constants.User.Register.EMAIL, Constants.User.Register.USER_NAME, Constants.User.Register.PASSWORD, Constants.User.Register.CONFIRM_PASSWORD);
IOTHomePage homePage = loginPage.loginAsUser(Constants.User.Register.USER_NAME, Constants.User.Register.PASSWORD);
Assert.assertTrue(homePage.checkUserName());
}
use of org.wso2.iot.integration.ui.pages.uesr.NewUserRegisterPage in project product-iots by wso2.
the class RegistrationFormValidationTest method setup.
@BeforeClass(alwaysRun = true)
public void setup() throws XPathExpressionException, XMLStreamException, IOException {
super.init();
driver = BrowserManager.getWebDriver();
driver.get(getWebAppURL() + Constants.IOT_USER_REGISTER_URL);
registerPage = new NewUserRegisterPage(driver);
uiElementMapper = UIElementMapper.getInstance();
}
use of org.wso2.iot.integration.ui.pages.uesr.NewUserRegisterPage in project product-iots by wso2.
the class LoginPage method registerNewUser.
/**
* Method for new user registration.
* @return After clicking the Register link, it will navigate to the User Registration page.
* @throws IOException
*/
public NewUserRegisterPage registerNewUser() throws IOException {
WebElement registerLink = driver.findElement(By.xpath(uiElementMapper.getElement("iot.user.register.link.xpath")));
registerLink.click();
return new NewUserRegisterPage(driver);
}
Aggregations