コード例 #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);
 }