Title: Best Interview questions and answers for Selenium
1Best Interview Questions and answers for Selenium
2-
- 1.Name the different types of drivers available
in Selenium WebDriver - Firefox Driver
- Internet Explorer Driver
- Safari Driver
- Opera Driver
- Android Driver
- iPhone Driver
- HTMUnit Driver
3- 2. What is the type of test can Selenium perform?
- The Selenium can perform different tests such
as functional test, regression test, and load
test of web-based application. The automation
tool present is implemented for post validation
with integration tools like Jenkins, Hudson,
QuickBuild, and more.
4- 3. Mention the three types of Selenium tests?
- There are three types of selenium tests, and
they are a functional test in which the test
cases related to software specifications. The
other is the regression test in which the tests
will search for errors, any regressions in the
functional and non-functional area of the code.
And lastly, the load test in which the test
monitors the response of the device or system
after putting a load on it. This test is carried
out to study the behavior of the systems.
5- 4. How do you close the browser session in
Selenium Webdriver? - There are only two ways to close the browser
and they are driver.close that closes the browser
window on which the focus is set. The second is
the driver.the quilt that calls the
driver.dispose of a method that closes all the
browser windows and ends the WebDriver session.
6- 5. Mention the four methods uses to alert
interface? - The four methods used to alert interface are
void dismiss(), void accept(), string getText(),
and void sendKeys (String stringToSend). In the
void dismiss() the accept () method clicks on the
cancel button as and when the pop-up window
appears. In the void accept(), the accept()
method click on the Ok button as soon as the
pop-up window appears.
7- The string getText() method returns the text
displayed on the alert box. And the void
sendkeys(String stringToSend), the sendkeys()
method enters the specific string pattern in then
alerts the box. - 6. Name some of the junit annotations?
- There are many junit annotations in the
Selenium are as given below - _at_test this annotation will let the system
understand that the method annotated as _at_Test is
a test method. _at_Before is the method which is
annotated _at_before will let you know that the
method used will be executed every time before
each test method.
8- _at_After lets the system know that this method is
executed every time after each method.
_at_BeforeClasses is the method where it will let
you know that this method is executed before any
test methods. - _at_AfterClass is the method which will let the
system know that the method will be executed
before the test. And lastly, _at_ignore will let the
system know that the method will not be executed.
9- 7. When can you use findElement() and
findElements()? - The findElement() will find the element in the
page that will match the specified locator value.
The findElements() will find all the elements in
the current web page that will match the
specified locator value. - 8. Mention the benefits of Automation testing?
- The Automation testing has various benefits
and they are as given below
10- They will support the execution of repeated
test cases, they will help in testing a large
test matrix, it will enable parallel execution,
and also, improves accuracy and reduced human
generated error. It also saves time and money. - 9.Mention the testing types supported by
Selenium? - The testing types are functional testing and
regression testing.
11- 10. What is Module Based Testing Framework and
Library Architecture Testing Framework? - The Mobile Based Testing Framework is the
framework that divides the entire application
under test into no. of the logical and isolated
module. We can create a separate and independent
test script. All these test scripts taken will
build a larger script together.
12- The Library Architecture Testing Framework is
the basic fundamental of the framework. This will
determine the common steps and hence, group them
together into functions, and these will under a
library. This will also, call those functions in
the test scripts.
13(No Transcript)
14To know more details on Selenium click here
https//bigclasses.com/selenium-online-training.ht
ml and call us- 91 800 811 4040For regular
Updates on Selenium please like our Facebook
page- Facebook- https//www.facebook.com/bigcl
asses/Twitter- https//twitter.com/bigclassesLi
nkedIn- https//www.linkedin.com/company/bigclass
es Google https//plus.google.com/Bigclasseson
lineSelenium Course Page- https//bigclasses.c
om/selenium-online-training.html Contact us -
India 91 800 811 4040
USA 1 732 325 1626Email us
at - info_at_bigclasses.com