Пример #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);
  }