public DockPage play() throws Exception { playButton.waitForElement(); assertThis("Play button is missing or xpath has changed", playButton.isElementPresent()); playButton.click(); return new DockPage(driver); }
public void login(String loginName, String password) throws Exception { loginField.waitForElement(); assertThis("Login In Field Cannot be located or is not present", loginField.isElementPresent()); loginField.typeText(loginName); passwordField.typeText(password); signInButton.click(); }
public void switchToRuLanguage() throws Exception { if (getElementCount(ruActiveLocator) == 0) { ruLink.click(); } }
public void switchToEnLanguage() throws Exception { if (getElementCount(enActiveLocator) == 0) { enLink.click(); } }
// ********************** Main functionality ************************** public RegisterPage signUp() throws Exception { signUpButton.waitForElement(); assertThis("Sign UP button is absent on Home page", signUpButton.isElementPresent()); signUpButton.click(); return new RegisterPage(driver); }