📜  bdd 中的钩子 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:39.659000             🧑  作者: Mango

代码示例1
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)