Selenium Interview Questions and Answers - Click4Interviews

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

26-10-2013

Selenium Interview Questions and Ans

Click4Interviews.com

Int er views & Faq' s

Search

QA Interviews By Company
Find us on Facebook

Click4Interviews.com
Like

You like this.

ADP
L & T Infotech
Ness Technologies

You and 133 others like


Click4Interview s.com.

NTT Data(Keane)
Polaris
Synova Innovative
Syntel
Value Labs
Click for More.....

Facebook social plugin

Attended Any Interviews ? Please send us Questions to [email protected]


Add Testing C# Testing

Gui Test

QTP Testing

Selenium Interview Questions and Answers


Selenium , Selenium FAQ's
Like

You, Abhinandan Ghosh and 132 others like this.

What is Selenium ?
Selenium is a portable software testing framework for web applic ations.
The tests can be written as HTML tables or coded in a number of popular
programming languages and can be run direc tly in most modern web browsers.
Selenium operations are highly flexible, allowing many options for locating UI
elements and comparing expected test results against actual applic ation
behavior.

Tech Interview Questions & Answers

Selenium c an be deployed on Windows, Linux, and Mac intosh.

C Interview Questions and Answers

Selenium is used for UAT (User Ac ceptance Test)

Java Interview Questions and Answers

Why and When To Automate?


Frequent regression testing
Repeated test case Exec ution is required
User Ac ceptance Tests

Hibernate Interview Questions ans Answers


Spring Interview Questions and Answers
Struts Interview Questions and Answers

Faster Feedback to the developers

JavaScript Interview Questions and Answers

Reduce the Human Effort

SQL Server Interview Questions and Answers

Test same applic ation on multiple environments

ABAP Interview Questions and Answers

What are the Components of Selenium ?

ASP .Net Interview Questions and Answers

1. Selenium IDE

SQL Interview Questions and Answers

2. Selenium Remote Control

Oracle DBA Interview Questions and Answers

3. Selenium Grid

HR Interview Questions and Answers

Explain about Selenium-IDE ?


Selenium IDE is an integrated development environment for Selenium tests.
Operates as a Firefox add-on and provides an interface for developing and
running individual test cases or entire test suites.
Selenium-IDE has a rec ording feature, whic h will keep account of user actions
as they are performed and store them as a reusable script to play bac k.
It also has a context menu (right-click) integrated with the Firefox browser,
whic h allows the user to pick from a list of assertions and verifications for the
selected loc ation.

Testing Questions & Answers


Selenium Interview Questions and Answers
Manual Testing Interview Questions and Answers
QTP Interview Questions and Answers
SDLC Interview Questions and Answers
STLC Interview Questions and Answers

Offers full editing of test cases.


Although it is a Firefox only add-on, tests created in it c an also be run against
other browsers by using Selenium-RC & spec ifying the name of the test suite
on the c ommand line.
What are the Features of Selenium IDE ?
Rec ord and playback

Java Interviews By Company


ADP
HCL
Infosys

Intelligent field selec tion will use IDs, names, or XPath as needed
Auto complete for all c ommon Selenium commands
Walk through test cases and test suites.

click4interviews.com//selenium-inter

Manhattan
Mphasis

1/3

26-10-2013

Selenium Interview Questions and Ans

Walk through test cases and test suites.

Mphasis

Debug and set breakpoints

Syntel

Save tests as HTML, Ruby scripts, or other formats

TCS

Support for Selenium user-extensions.js file


Option to automatically assert the title of every page

Wipro

Rollup common c ommands


What is Selenium-RC (Remote Control) ?
Selenium-RC provides an API (Applic ation Programming Interface) and library for each of
its supported languages: HTML, Java, C#, Perl, PHP, Python, and Ruby. Selenium-RC
allows the test automation developer to use a programming language for maximum
flexibility and extensibility in developing test logic.

Find us on Facebook

Click4Interviews.com
Like

You like this.

You and 133 others like Click4Interview s.com.

For instance, if the application under test returns a result set, and if the automated test
program needs to run tests on each element in the result set, the programming languages
iteration support can be used to iterate through the result set, calling Selenium commands
to run tests on each item.
Explain about Selenium-Grid ?
Selenium-Grid allows the Selenium-RC solution to sc ale for test suites or test suites to be
run in multiple environments.
With Selenium-Grid multiple instances of Selenium-RC are running on various operating
system and browser configurations, each of these when launc hing register with a hub.
When tests are sent to the hub they are then redirec ted to an available Selenium-RC,
which will launch the browser and run the test.

Facebook social plugin

This allows for running tests in parallel, with the entire test suite theoretically taking only
as long to run as the longest individual test.
What are the Selenese Commands in Selenium ?
clicking a link - c lick or c lickAndWait commands
entering values - type command
selecting options from a drop-down listbox - selec t c ommand
clicking checkboxes or radio buttons - click c ommand
What is Test Runner ?
Test Runner allows you to run the test case in a browser loaded with the Selenium-Core
TestRunner. Test runner is invoked by c licking the below Shown button in the IDE.
What are the Running Options in Selenium ?
Run a Test Case: Click the Run button to run the currently displayed test case.
Run a Test Suite: Click the Run All button to run all the test cases in the currently loaded
test suite.
Stop and Start: The Pause button can be used to stop the test case while it is running.
The icon of this button then changes to indicate the Resume button. To continue click
Resume.
Stop in the Middle: Set a breakpoint in the test case to cause it to stop on a particular
command. This is useful for debugging your test case. To set a breakpoint, select a
command, right-click, and from the context menu select Toggle Breakpoint.
Start from the Middle: We can set the IDE to begin running from a specific command in
the middle of the test case. This also is used for debugging. To set a start point, select a
command, right-click, and from the context menu select Set/Clear Start Point.
Run Any Single Command: Double-click any single command to run it by itself. This is
useful when writing a single command. It lets you immediately test a command you are
constructing, when you are not sure if it is correct. You can double-click it to see if it runs
correctly. This is also available from the context menu.
What are the Assertion Statements in Selenium ?
assertTextPresent : This will assert if the text is present in the page.
assertText: This will assert if a particular element is having the particular text.
assertTitle: This will assert if the page is having a proper title.
assertValue: This will assert if a Text box or check box has a particular value
assertElementPresent: This will assert if a particular UI Element is present in the page.
Explain Selenium WaitFor Commands ?
waitForPageToLoad : This command will make the script to wait till the page loads.
Syntax is waitForPageToLoad(timeout); Time out is the maximum time the script will wait
for the page to load.
waitForAlert : This command will wait for the alert message to appear
waitForTable: This command will wait for the Web table to completely load in the page
waitForTitle: This command will for the page Title to appear on the browser.
Other waitFor commands : Selenium has several other wait command like waitForText,
waitForPopup and so on. These commands are generically called Synchronization
commands
What are the Advantages and Disadvantages of Selenium ?
Advantages

click4interviews.com//selenium-inter

2/3

26-10-2013

Selenium Interview Questions and Ans

Supports C#, Java, PHP, Perl, Phython


Supported on Windows, Linux and Mac OS
Highly active developer community - bac ked by Google
Powerful methods to loc ate elements (Xpath, CSS, DOM)
Disadvantages
Challenges running on browsers other than Firefox
Difficulty to automate AJAX
Limitations to automate Applets, MS and Desktop Applications

Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your
Inbox.
Email address here...

Subs cribe

Make sure to activate your subscription by clicking on the activation link sent to your
email
Advertisements

Jobs in Bangalore.
www.monsterindia.com/Bangalore

Companies in Bangalore are Hiring. Upload Resume @ Monster. Apply Now!

Related Posts
Steps to start with Selenium
Selenium Commands
What is Selenium Remote Control ?
Selenium Test Automation Process
What are the Advantages and Disadvantages of Selenium ?

Click4Interviews.com
Powered by Blogger. Designed by elogi. Converted by Smashing Blogger for LiteThemes.com. Proudly powered by Bl ogger.

click4interviews.com//selenium-inter

3/3

You might also like