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

Interview Questions For Selenium WebDriver Part 10

Part 10 46 : Can we perform drag and drop operation In Selenium WebDriver? Tell me a syntax to drag X element and drop It On Y element. Answer : Yes, We can perform drag and drop operation using selenium webdriver software testing tool’s Advanced User Interactions API. Syntax Is like below. new Actions(driver).dragAndDrop(X, Y).build().perform(); View Practical Example 47 : … Read more