0% found this document useful (0 votes)
23 views

Selenium Interview Questions

Uploaded by

shashwats.rai3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Selenium Interview Questions

Uploaded by

shashwats.rai3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

--> What is Selenium? What are its different components?

It is one of the most popular Automation Testing suites.


It is designed in a way to automate the functional aspects of a web
applications and wide range of browsers and platforms.
It is open source.
It is a package of several testing tools.

The suite package consists of:


1. Selenium IDE (Integrated Development Environment): Record and Playback
tool. Distributed as Firefox plugin.
2. Selenium RC (Remote Control): Server used in execution to create test
scripts in the desired language.
3. Selenium WebDriver: Directly communicates with the browser. Has more
advantages over RC.
4. Selenium Grid: Used to distribute multiple test execution on multiple
environments and platforms concurrently.
Supports cross browsing.

--> What is a Selenium Framework?


It is a code structure for making code maintenance simpler, and code
readability better.
This framework involves breaking the entire code into smaller pieces of code,
which test a particular functionality.
It can also be structured in a way wherein, the test cases which need to be
executed are called (invoked) from an
external application.

--> Types of Framework in Selenium:


Data Driven: separates the 'data set' from the actual 'test case'(code).
Key-word Driven: Here, all operations and instructions to be performed are
written separately from the actual test case.
Hybrid:

--> Challenges of Selenium Web-Driver:


It is difficult to test Image based applications.
It needs outside support for report generation activity like dependence on
TestNG or Jenkins.
Can't perform tests on web services like SOAP or REST using Selenium.

--> Limitations of Selenium Web-Driver:


Can't test mobile applications.
Difficulty in handling the pop-ups.
Doesn't support dynamic content.
Limited reporting.

--> Selenium Grid Working:


It is a part of Selenium suite that specialised in running multiple different
browsers operating system.

--> Capabilities of Selenium WebDriver:


Handling Pop-ups
Handling multiple frames
Handling browser windows
Alerts
Helps in Page Navigation
Drag and Drop
Supports Ajax based applications

--> What is Selenese?


A set of Selenium commands used to test web application.
Actions: Used to perform operations and interacts with the target element.
Assertions: Used as checkpoints
Accessors: Storing the values in a variable.

--> Object-Repository: can be built using the key-value pair approach wherein the
key refers to the name given to the
object and value refers to the properties used to uniquely
identify an object within the webpage.

--> Wait Statements:


Implicit Wait:
Explicit Wait:

--> Locators in Selenium: Address that identifies a web element uniquely within the
webpage. Types of locators in Selenium:
ID, XPath, CSS Selector, Partial LinkText, Name, LinkText
XPath: It is a language to query XML documents. It is an expression alongwith
some conditions.

--> FindElement and FindElements

--> Size of the browser window:

You might also like