[Solved] Why is my ‘Wait method’ not failing the TestNG test case?


} catch (Exception e) {
  System.out.println("Unable to wait and click on element, Exception: " + e.getMessage());
}

You are catching all exceptions, so the test won’t fail.

6

solved Why is my ‘Wait method’ not failing the TestNG test case?