Пример #1
0
  public DockPage play() throws Exception {
    playButton.waitForElement();
    assertThis("Play button is missing or xpath has changed", playButton.isElementPresent());
    playButton.click();

    return new DockPage(driver);
  }
Пример #2
0
 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();
 }
Пример #3
0
 public void switchToRuLanguage() throws Exception {
   if (getElementCount(ruActiveLocator) == 0) {
     ruLink.click();
   }
 }
Пример #4
0
 public void switchToEnLanguage() throws Exception {
   if (getElementCount(enActiveLocator) == 0) {
     enLink.click();
   }
 }
Пример #5
0
 //	********************** 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);
 }