コード例 #1
0
  @AfterMethod(alwaysRun = true)
  public void Screenshots(ITestResult result) throws Exception {

    action.Screenshot(result, action);
    boolean Accept = action.isAlertPresent();
    action.alert(Accept);
  }
コード例 #2
0
  @AfterMethod(alwaysRun = true)
  public void Screenshots(ITestResult result) throws IOException, InterruptedException {

    action.Screenshot(result, action);
  }