Professional Documents
Culture Documents
Selenium Interview Questions - U
Selenium Interview Questions - U
SeleniumInterviewQuestionsjavatpoint
ContentMenu
SeleniumInterviewQuestions
A list of frequently asked Selenium interview questions and
answersaregivenbelow.
1/8
4/21/2016
SeleniumInterviewQuestionsjavatpoint
4)WhatisSelenium1.0?
Selenium 1.0 is popularily known as Selenium Remote Control
(Selenium RC). It is a library available in wide variety of
languages. The main reason to use Selenium RC was that
Selenium IDE was incapable to execute tests in browsers other
thanSeleniumIDEandthelimitationoflanguageSeleneseused
inSeleniumIDE.
5)WhatisSeleniumIDE?
SeleniumIDEisafirefoxplugin.Itisusedtorecordandreplay
testsinfirefoxbrowser.Itisusedonlywithfirefoxbrowser.
6)Whatisselenium2.0?
Selenium 2.0 is a tool which is a combination of web testing
toolsSeleniumRCandWebDriver.
7)Whyisseleniumselectedasatesttool?
Seleniumisusedasatestingtoolbecause:
Itisfreeandopensource.
Ithasalargeuserbaseandhelpingcommunities.
Compatible on different platforms i.e. Windows, Mac OS,
Linuxetc.
Have cross browser compatibility (Chrome, Firefox, IE,
Safarietc.)
Support multiple programming languages ( Java, C#,
Ruby,PERL,Pythonetc.)
Supportdistributedtesting.
http://www.javatpoint.com/seleniuminterviewquestions
2/8
4/21/2016
SeleniumInterviewQuestionsjavatpoint
9)Whatarethelimitationsofselenium?
Seleniumhasfollowinglimitations:
Itcanbeusedonlytotestwebbasedapplication.
Mobileapplicationscannotbetestedusingselenium.
Youcannottestcaptchaandbarcodebyusingselenium.
The user must have the knowledge of programming
languageforusingselenium.
Reportscanonlybegeneratedusingthirdpartytoolslike
TestNGorJunit.
10)Whatisselenese?
Selenese is a lanuage which is used for writing test script in
seleniumIDE.
3/8
4/21/2016
SeleniumInterviewQuestionsjavatpoint
TagName
LinkText
PartialLinkText
Xpath
CSSSelector
DOM
12)WhatisanXpath?
XpathisusedtolocateawebelementbasedonitsXMLpath.It
canbeusedtolocateHTMLelements.
13)WhichisthelatestSeleniumtool?
ThelatestSeleniumtoolisWebDriver.
14)WhatarethedifferenttypesofDriversthat
WebDrivercontains?
ThesearethedifferentdriversavailableinWebDriver:
FirefoxDriver
InternetExplorerDriver
ChromeDriver
SafariDriver
OperaDriver
AndroidDriver
IPhoneDriver
HtmlUnitDriver
15)WhatisSeleniumGrid?
SeleniumGridfacilitatesyoutodistributeyourtestsonmultiple
machinesandallofthematthesametime.So,youcanexecute
tests on Internet Explorer on Windows and Safari on Mac
http://www.javatpoint.com/seleniuminterviewquestions
4/8
4/21/2016
SeleniumInterviewQuestionsjavatpoint
machine using the same text script. It reduces the time of test
executionandprovidesquickfeedback.
16)WheretheresultisseenofTestExecution
inSeleniumIDE?
The result of test execution is displayed in a Log Window in
SeleniumIDE.
17)CanyouedittestsinSeleniumIDE?
Yes,testsinSeleniumIDEcanbeedited.Therearetwowaysto
edittestsinSeleniumIDE.
ByTableviews
Lookingintothesourcecode
18)Canyouusehtmlidandnamewhileusing
SeleniumIDE?
Yes,YoucanusehtmlidandnameasitisavailableinSelenium
IDE.
19)WhataretheWebDriversupportedMobile
TestingDrivers?
WebDriversupported"mobiletestingdrivers"are:
AndroidDriver
IphoneDriver
OperaMobileDriver
5/8
4/21/2016
SeleniumInterviewQuestionsjavatpoint
PHP
Python
C#
Ruby
Perl
21)Whatisthedifferencebetweenassertand
verifycommands?
Assert:Assertcommandchecksifthegivenconditionistrueor
false. If the condition is true, the program control will execute
thenextphaseoftesting,andiftheconditionisfalse,execution
willstopandnothingwillbeexecuted.
Verify: Verify command also checks if the given condition is
true or false. It doesn't halts program execution i.e. any failure
during verification would not stop the execution and all the test
phaseswouldbeexecuted.
22)Whatisthedifferencebetween"/"and"//"
inXpath?
Single Slash "/": Single slash is used to create Xpath with
absolutepath.
DoubleSlash"//": Double slash is used to create Xpath with
relativepath.
23)HowtotypeinatextboxusingSelenium?
Totypeinatextbox,weusesendKeys("Stringtobeentered")
toinsertstringinthetextbox.
Syntax:
1. WebElementusername=drv.findElement(By.id("Email"))
2. //enteringusername
3. username.sendKeys("sth")
http://www.javatpoint.com/seleniuminterviewquestions
6/8
4/21/2016
SeleniumInterviewQuestionsjavatpoint
24)WhatisJUnit?
JUnitisanopensourcetestingframeworkforjavaapplications.
ItisintroducedbyApache.
27)Whatisthedifferencebetweenclose()and
quit()?
The close() method closes the current browser only whereas
quit()methodclosesallbrowsersopenedbyWebDriver.
Job/HR
Interview
Questions
PL/SQL
Interview
Questions
Interview
Questions
Oracle
Database
SQL
Interview
Questions
Interview
Questions
SQL Server Interview
Questions
Java Basics Interview
http://www.javatpoint.com/seleniuminterviewquestions
Android
Interview
Questions
MySQL
Interview
Questions
Java OOPs Interview
7/8
4/21/2016
SeleniumInterviewQuestionsjavatpoint
Questions
Java
Questions
Multithreading
Questions
Java
Collection
Interview
Questions
Spring
String
&
ExceptionQuestions
InterviewQuestions
Servlet
Java
JDBC
Interview
Questions
JSP
Interview
Questions
Interview
Questions
http://www.javatpoint.com/seleniuminterviewquestions
Hibernate
Interview
Questions
8/8