WebDriver Interview Questions With Answers

Last updated on June 19th, 2025 at 05:26 am

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.

  1. contains()
  2. starts-with()

89 : I have used findElements In my software test case. It Is returning NoSuchElementException when not element found. Correct me If I am wrong.

Answer : It Is Incorrect. findElements will never return NoSuchElementException. It will return just an empty list.

90 : My Firefox browser Is not Installed at usual place. How can I tell FirefoxDriver to use It?
Answer : If Firefox browsers Is Installed at some different place than the usual place then you needs to provide the actual path of Firefox.exe file as bellow.

System.setProperty("webdriver.firefox.bin","C:\Program Files\Mozilla Firefox\Firefox.exe");
driver =new FirefoxDriver();

91 : How to create custom firefox profile and how to use It In selenium webdriver software test?
Answer : You can view detailed answer for firefox custom profile on THIS PAGE.

92 : What versions of Internet Explorer are supported by selenium WebDriver software testing tool?
Answer : Till date, Selenium WebDriver software testing tool supports IE 6, 7, 8, 9, 10 and 11 with appropriate combinations of Windows 7, Vista or XP.

Stay Updated with New Articles
Get the latest tutorials and insights delivered to your inbox.

Leave a Reply

Your email address will not be published. Required fields are marked *