Selenium Interview Questions and Answers - Click4Interviews
Selenium Interview Questions and Answers - Click4Interviews
Selenium Interview Questions and Answers - Click4Interviews
Click4Interviews.com
Search
QA Interviews By Company
Find us on Facebook
Click4Interviews.com
Like
ADP
L & T Infotech
Ness Technologies
NTT Data(Keane)
Polaris
Synova Innovative
Syntel
Value Labs
Click for More.....
Gui Test
QTP Testing
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.
1. Selenium IDE
3. Selenium Grid
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
Mphasis
Syntel
TCS
Wipro
Find us on Facebook
Click4Interviews.com
Like
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.
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
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
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