Automation Question:

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.


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