Interview Questions With Detailed Answers On Selenium

Part 18 83 : What are the benefits of parallelism over normal execution? Answer : Using parallelism facility of TestNG In selenium webdriver, Your software test execution time will be reduced as multiple tests will be executed simultaneously. Using parallelism, We can verify multithreaded code In software application. 84 : I wants to run test cases/classes In parallel. Using which attribute and … Read more

Usage Of TestNG expectedExceptions Attribute In Selenium WebDriver With Example

expectedExceptions Is very good feature of testng using which we can Ignore known but not required exceptions. In your selenium webdriver test execution, You can use expectedExceptions when you know that any specific @Test method can throw specific exception but It Is not much more Important and you wants to Ignore that exception. If you have used … Read more

List Of Interview Questions For Selenium WebDriver

Part 17 78 : What Is the syntax to get value from text box and store It In variable. Answer : Most of the time, String In text box will be stored as value. So we need to access value attribute(getAttribute) of that text box as shown In bellow example. String Result = driver.findElement(By.xpath(“//input[@id=’Resultbox’]”)).getAttribute(“value”); VIEW … Read more

How To Group And Run Selenium Test Cases Using Testng

Grouping tests Is another very good feature of testng using which you can create group of test methods. You can create a group of test methods based on functionality and features, or based on modules or based on testing types like functional testing, sanity testing etc.. This way you can differentiate specific group test methods from … Read more