1) WHAT IS SELENIUM?
Selenium is a collection of tools for automation web based applications. It consists of Selenium IDE, WebDriver and Grid.
2) WHAT ARE TESTING TYPES SUPPORTED BY SELENIUM?
Selenium supports Functional and Regression Testing.
3) HOW CAN WE TEST WINDOWS BASED APPLICATON USING SELENIUM?
Selenium doesn’t support windows application testing. It is designed for web based application.
4) WHAT HAPPENS WHEN THERE ARE SOME WINDOW OR POPUP APPEARS IN BROWSER DURING TEST?
If a browser or Java Script alert popup appears, that can be handled using Alert class. For any windows based popup, there is no direct solution from selenium, but there are some workaround using third party tools like Auto It, but with limitations.
5) HOW TO RECORD SCRIPT IN SELENIUM?
Selenium IDE is a record and playback tool which is distributed as Firefox Plugin. Selenium Web Driver doesn’t have record and playback feature.
6) HOW TO PERFORM REMOTE EXECUTION IN SELENIUM?
Remote execution is done using selenium grid by configuring nodes.
7) WHAT ARE THE DIFFERENT TYPES OF LOCATORS IN SELENIUM?
The different types of locators are
8) WHICH LOCATOR IS THE FASTEST AND WHAT ARE YOUR RECOMENDATONS?
Note:- There are lot of debate on this, but your answer should be
It depends on the architecture of the application, but from the perspective of DOM, CSS Selector is the fastest as it is already loaded in the browser. The ideal recommendation will be ID as if there is unique id for every element. There are some cases where ID will be dynamic, in such cases, CSS Selector and XPath is the best option.
9) WHAT IS XPATH AND WHAT ARE THE DIFFERENT TYPES OF XPATH?
XPath is used to locate a element based on its XML path. XML stands for Extensible Markup XPath can be used to locate HTML elements.
The XPath is used in html to traverse between various elements across the entire page by using the reference path given by the user.
XPaths can be categorized as absolute and relative XPaths
Absolute Path : – A single slash ‘/’ is used to denote the absolute path ie. it is created to start the selection from the root node of the document.
Relative Path :- A double slash ‘//’ is used to denote the relative path ie. it is created to start the selection from anywhere within the matching node of the document.
10) WHICH XPATH WULD YOU RECOMMEND?
Relative XPath. Absolute XPath may fail if application structure changes.
For more interview Questions, download Interview Questions App from play store.