Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hooks in bdd

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)
 
PREVIOUS NEXT
Tagged: #hooks #bdd
ADD COMMENT
Topic
Name
4+5 =