What is the difference between Selenium and TestNG?
WebDriver, a web automation framework, allows us to execute different tests across different browsers.
WebDriver WebDriver is nothing but a web automation framework using Junit whereas Selenium TestNG is an automation testing framework leveraging annotations like @AfterTest, @BeforeTest, making it quite comprehensible. WebDriver lacks native mechanism to generate reports while you can generate Test Reports with Selenium TestNG. To run the failed test cases, you might have to depend on running the entire script once more. You can run the failed test cases with TestNG.