Question - Explain what are the JUnits annotation linked with Selenium?
Answer -
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