@Override protected void tearDown() throws Exception {
  try {
    takeScreenShot();
  }
 catch (  Throwable throwable) {
    throwable.printStackTrace();
  }
  super.tearDown();
}

@ Override protected void tearDown ( ) throws Exception { try { takeScreenShot ( ) ; } catch ( Throwable throwable ) { throwable . printStackTrace ( ) ; } super . tearDown ( ) ; }
takes a screenshot after every test
