@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);
  }