Interview Questions
Interview Questions
1)What is selenium?
Selenium is a suit
Selenium has 4 tools
1)Selenium IDE
2)Selenium RC
3)Selenium Web Driver
4)Selenium Grid
2)What is Selenium WebDriver?
WebDriver is a collection of open-source APIs which are used to automate the
testing of a web application. It is an test automation framework. Which is used
to perform cross browser testing.
WebDriver is an Interface
Web Driver =New Web Driver ();
3)What is Locator?
Locator is a way to identify the element on a page.
Several types of locators are available selenium web drivers, such as
1)ID 5) X path
2)Name 6) Tag Name
3)Class Name 7) Link Text
4)CSS Selector 8) Partial Link Text
4)What is X path?
X path stands for xml path language
X path can be used to navigate through elements and attributes in an XML
document
X path has two types
1)Absolute X-path
2)Relative X-path
5)What is Absolute X-Path?
Absolute x-path always start with forward slash (‘/’), Which indicate the root
element of the document.
Absolute x-path will be traverse entire HTML from the root node/HTML.
6)What is Relative X-path?
Relative do not start with forward slash (‘/)
Relative X path directly jump to node based on attribute specified.
7)How to Check a Check Box in Selenium?
The Same Click () method used for clicking button or radio buttons can be used
for checking checkbox as well.
8)What is the difference between single slash (/) and double slash (//) in X-
path?
In X path a single slash is used for creating X-path with absolute path beginning
from root node, whereas double slash is used for creating relative X path.
9)What are various ways of locating an element in selenium?
The different locators in selenium are
1)ID 5) Tag Name
2X path 6) Name
3)CSS Selector 7) Link Text
4)Class Name 8) Partial Link Text
10)What is the major difference b/w Driver Close () and Driver Quit ()?
Driver. Close ()
The command closes the browsers current window if multiple windows are
open the current window of focus will be closed.
Driver. Quit ()
When quit () is called on the driver instance and there one or more browser
windows open .it closes all the open browser windows.
11)How do handle a frame in Web Driver?
To Handle a frame in web Drier, we use the switch to () method.
12)What is an Object Repository?
An object Repository is a centralized location where testers can store all the
web elements, such as buttons, text boxes
13)What is TestNG framework?
TestNG is an open-source test automation framework for Java.
To Group test cases, execute test batches and generate detailed text report.
14)What is Manual Testing?
Manual testing is a software Testing process in which test cases are executed
manually without using automation tool.
15)What are the advantages of Manual Testing?
IT’s Cheaper
You get visual feedback that’s accurate and quit
IT’S ideal for testing minor changes
IT’S perfect for ad hoc testing.
16)What is SDLC?
This is software development life cycle and composes all of the stages of
software development including requirements rather than its internal
implementation.
17)What is Black Box Testing?
Black box testing is a software testing technique where the internal workings or code
structure of the system being tested are not known to the tester.
White box testing techniques analyse the internal structures the used data
structures, internal design, code structure, and the working of the software rather
than just the functionality as in black box testing. It is also called glass box
testing or clear box testing or structural testing. White Box Testing is also known
as transparent testing or open box testing.
19)What is Functional Testing?
The Functional testing is type black box testing it focuses on the software
functional requirements rather than its internal implementation
20)What is Regression Testing?
Regression testing is fault (or) partial selection of already executed test that are
Re executed to ensure existing functionalities work fine.