@Step("Asserting element {1} is present after {2} seconds") public static void assertElementIsPresentAfter(AugmentedFunctions driver,By by,int timeoutInSeconds){
  Preconditions.checkNotNull(driver);
  Preconditions.checkNotNull(by);
  try {
    driver.findElementPresentAfter(by,timeoutInSeconds);
  }
 catch (  TimeoutException e) {
    throw new AssertionError(String.format("Element %s is not present after %s seconds",by,timeoutInSeconds),e);
  }
}

@ Step ( "Asserting element {1} is present after {2} seconds" ) public static void assertElementIsPresentAfter ( AugmentedFunctions driver , By by , int timeoutInSeconds ) { Preconditions . checkNotNull ( driver ) ; Preconditions . checkNotNull ( by ) ; try { driver . findElementPresentAfter ( by , timeoutInSeconds ) ; } catch ( TimeoutException e ) { throw new AssertionError ( String . format ( "Element %s is not present after %s seconds" , by , timeoutInSeconds ) , e ) ; } }
asserts that a by is present . if it is not present after timeoutinseconds , it will throw an assertionerror exception
