Selenium WebDriver - Explain what are the JUnits annotation linked with Selenium?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - Explain what are the JUnits annotation linked with Selenium?
The JUnits annotation linked with Selenium are
@Before public void method() – It will perform the method () before each test, this method can prepare the test
@Test public void method() – Annotations @Test identifies that this method is a test method environment
@After public void method()- To execute a method before this annotation is used, test method must start with test@Before
(Continued on next question...)
Other Interview Questions
|