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

Set Priority For Selenium WebDriver TestNG @Test Method Execution

We can set test execution priority for selenium WebDriver @Test annotation methods. If there Is single @Test annotation method In your test class then you do not need to set test execution priority but supposing you have multiple @Test annotation methods In single test class then many of you may face Issue like @Test method’s execution sequence Is … Read more

Selenium WebDriver Job Interview Questions Part – 9

Part 9 41 : What kind of software testings are possible using selenium WebDriver? We can use It for any other purpose except testing activity? Answer : Generally we are using selenium WebDriver for functional and regression testing of software web applications. 42 : Give me any five different xPath syntax to locate bellow given Input element. … Read more