WebDriver Interview Questions With Answers

Part 19 88 : In XPath, I wants to do partial match on attribute value from beginning. Tell me two functions using which I can do It. Answer : We can use bellow given two functions with XPath to find element for software web page using attribute value from beginning. contains() starts-with() 89 : I have used findElements In my software … Read more

Reading Font Properties In Selenium WebDriver Using .getCssValue() Method

Sometimes you need to read font properties like font size, font color, font family, font background color etc.. during WebDriver test case execution. Selenium WebDriver Is very wast API and It has many built In methods to perform very small small operations on web page. Reading font property manually Is very simple task using firebug as … Read more

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