Q. Which annotation is used to set up preconditions in TestNG with Selenium?

A
@AfterMethod
B
@BeforeMethod
C
@Test
D
@AfterTest
Solution:

@BeforeMethod runs setup code

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!

    [honeypot honeypot-100]