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