Hooks class is used to create pre and post condition f or scenarios and even steps. @Before, @BeforeStep -> webdriver setup, maximize browser, database connection setup @After @AfterStep -> we can close any connection we open.(driver, browser)