In both pass and failure scenarios, the driver does not quit I saw that driver.quit() already present in afterTest()