Automation Question:

Download Job Interview Questions and Answers PDF

Tell us what is the difference between @Factory and @DataProvider annotation?

Automation Interview Question
Automation Interview Question

Answer:

@DataProvider is concerned to individual test methods and run the specific methods for many times. @Factory method creates test class instances and runs all the test methods in that class with different data. sets.

Download Automation Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me why to choose Python over Java in Selenium?Explain me how to Handle Alerts in Selenium WebDriver?