Exemplo n.º 1
0
  @AfterMethod(alwaysRun = true)
  public void Screenshots(ITestResult result) throws Exception {

    action.Screenshot(result, action);
    boolean Accept = action.isAlertPresent();
    action.alert(Accept);
  }
Exemplo n.º 2
0
  @AfterMethod(alwaysRun = true)
  public void Screenshots(ITestResult result) throws IOException, InterruptedException {

    action.Screenshot(result, action);
  }