package com.test
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class UtilClass{
public static void testMethod() {
try {
log.info("Clicking button.");
driver.findElement(By.id(button_id)).click();
} catch (NoSuchElementException e) {
log.error("Unable to locate button.", e);
Assert.fail();
}
}