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