Ejemplo n.º 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);
  }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
 public void switchToRuLanguage() throws Exception {
   if (getElementCount(ruActiveLocator) == 0) {
     ruLink.click();
   }
 }
Ejemplo n.º 4
0
 public void switchToEnLanguage() throws Exception {
   if (getElementCount(enActiveLocator) == 0) {
     enLink.click();
   }
 }
Ejemplo n.º 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);
 }