Selenium Interview Questions and Answers - Page 2

    0 Votes

13. What is a Xpath?

Xpath is a XML path language, which describes a way to traverse through XML document to locate nodes. Same is used to locate elements in HTML.
14. What is the difference between '/' and '//' in Xpath?

'/' used to indicate absolute path of an element, majorly when the user knows exact path of an element. Whereas '//' used to indicate relative path of an element, majorly to locate an element from any part of the HTML file.

15. What is Selenium RC?

Selenium Remote Control (RC) is the first selenium project before Selenium Webdriver. It's a test tool that allows you to write automated web application user interface tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser.

16. What are the Selenium RC supported languages/client drivers?

Supported languages/client drivers are :

  • Java
  • Ruby
  • Python
  • Perl
  • PHP
  • .Net

17. Explain the advantages of Selenium

  • Open Source
  • iUser communities for addressing the issues faced
  • Cross browser compatibility
  • Multiple platform compatibility
  • Supports multiple programming/scripting languages

18. What are the different type of locators used in Selenium

Locators are used to identify elements within a web page, types are listed below :

  • ID
  • Name
  • LinkText
  • PartialLinkText
  • ClassName
  • TagName
  • Xpath
  • CSS Selector
  • DOM

19. What is Selenium Grid?

Selenium Grid allows us to run tests on different machines against different browsers in parallel. Here different machines can be of different OS and supports distributed test execution.

20. What is the Difference between Selenium1 and Selenium2?

Selenium1 is Selenium RC and Selenium2 is Selenium Webdriver, major difference is that the Selenium RC communicates to browser via Server, whereas the Webdriver makes direct calls to browser native support for automation.

21. What are the Browser launch commands used in Webdriver

Following are some major browser related launch commands :

WebDriver driver = new FirefoxDriver(); //Mozilla
WebDriver driver = new ChromeDriver(); //Chrome
WebDriver driver = new InternetExplorerDriver(); //Internet Explorer
WebDriver driver = new RemoteWebDriver(); // Grid
WebDriver driver = new HtmlUnitDriver(); //Headless browser

22. List down the Webdriver supported drivers

SeleniumHQ drivers :

  • FirefoxDriver
  • InternetExplorerDriver 
  • SafariDriver 
  • HtmlUnitDriver

Third party drivers :

  • ChromeDriver 
  • OperaDriver 
  • AndroidDriver 
  • IPhoneDriver 
  • Etc
Page 2 of 4

Popular Videos

communication

How to improve your Interview, Salary Negotiation, Communication & Presentation Skills.

Got a tip or Question?
Let us know

Related Articles

Software Testing Interview Questions and Answers
Automation Testing Interview Questions and Answers