Selenium WebDriver With JUnit Interview Questions With Answers Part 12

Part 12 53 : Which Is the latest version of JUnit. Answer : Current latest version of JUnit Is 4.12-beta-2. This can change In future. To check latest released version of JUnit, You can Visit JUnit Official WebSite. 54 : Tell me different JUnit annotations and Its usage. Answer : JUnit has bellow given different annotations. @Test  : @Test annotation Is useful … Read more

Executing Selenium WebDriver Test Classes Parallel Using TestNG

Sometimes you need to execute multiple test cases at same time to save test execution time. TestNG has very good feature to execute test cases/classes In parallel to each other means you can execute two different test cases In two different windows of same browser simultaneously. If you remember, We have already learnt how to execute … Read more

Interview Questions For Selenium WebDriver Part 11

Part 11 48 : Can you tell me a syntax to close current webdriver Instance and to close all opened webdriver Instances? Answer : Yes, To close current WebDriver Instance, We can use Close() method as bellow. driver.close(); If there are opened multiple webdriver Instances and wants to close all of them then we can use webdriver’s quit() method … Read more

Using dependsOnMethods Of TestNG In Selenium WebDriver Test Case

Earlier in previous post, We have learnt how to set test execution priority of WebDriver test cases If you have multiple tests In same class. TestNG has one more very useful feature of setting test execution dependency. Depends on method in testng means If one @Test method fails or skipped from execution then It’s dependent @Test method must … Read more