Join us

Selenium Testing Interview Questions

Selenium Testing Interview Questions

Selenium Testing Interview Questions

1) What is Selenium and how does it work?

Selenium is a set of automated web testing tools. It is made up of

IDE (Integrated Development Environment) for Selenium: It's a recording and playback programme. It's a Firefox add-on.

WebDriver and RC are APIs for a range of languages, including Java,.NET, PHP, and others. Webdriver and RC are compatible with the majority of browsers.

Grid: Grid allows you to distribute tests over numerous machines so that they may be run in parallel, reducing the amount of time it takes to run browser test suites.

  1. What is Selenium 2.O?

Web Testing tools Selenium RC and WebDriver are consolidated in single tool in Selenium 2.0

3) How do you plan on using Selenium to locate an element?

Every object or control in a web page is referred to as an element in Selenium, and there are several ways to locate one.










4) What are the different kinds of tests that Selenium supports?

Selenium is a tool that can be used to test web-based applications.

The following are examples of test kinds that can be accommodated.

a) It is useful; More information on functional testing can be found here.

egression is the second option.

An automated continuous integration tool could be utilised for post-release validation.

Jenkins, to begin with


Simple to construct


5) Describe what assertion is in Selenium and the different sorts of assertion.

Assertion is used as a point of verification. It confirms that the application's current status is as intended. "assert," "verify," and "waitFor" are the three sorts of assertions.

6) What is the purpose of the X-path?

In web pages, X-Path is utilised to locate the WebElement. It can also be used to identify dynamic aspects.

Refer to the XPath Complete Guide.

7) In X-path, what is the difference between a single and a double slash?

'/' is a single slash.

Start selection from the document node with a single slash (/).
You can use it to make 'absolute' path expressions.
'//' with a double slash

Start selection matching anywhere in the document with a double slash (/).
It allows you to make path expressions that are'relative.'

8.What are the technological difficulties using Selenium? Selenium has a number of technical challenges.Only web-based applications are supported by Selenium. The Bitmap comparison is not supported. Any reporting-related functions must rely on third-party software. In comparison to commercial products like HP UFT, the tool has no vendor support. Maintainability of objects becomes problematic in Selenium since there is no concept of an object repository.

9.What is the difference between keyboard shortcuts and keyboard commands? In most circumstances, TypeKeys() will produce a JavaScript event, whereas.type() would not.  Type key uses JavaScript to populate the value attribute, whereas.typekeys() simulates actual user typing.

10.What is the difference between the commands verify and assert? Assert: Assert allows you to see if an element is present on the page.

or it's not. If the asserted element is not available, the test will fail at that step. To put it another way, the test will end when the check fails.

Verify: The verify command checks whether the element is present on the page; if it is not, the test will continue to run. Even if one of the tests fails, all of the commands will be guaranteed to run during verification.

11) What are JUnit Annotations and what are the different sorts of annotations?

Annotations are a unique type of syntactic meta-data that can be introduced to Java source code. Annotated variables, parameters, packages, methods, and classes Some of the more helpful Junit annotations are:


12) Is it possible to use screen coordinates while using the click command?

You'll need to use the clickAT command to click on a specific area of an element. The element locator and x, y co-ordinates are passed as arguments to the ClickAt instruction.

13) What are some of the benefits of selenium?

C#, PHP, Java, Perl, and Phython are all supported.
It works with a variety of operating systems, including Windows, Linux, and Mac OS.
It has effective methods for locating components (Xpath, DOM , CSS)
It has a large development community that is backed by Google.

14) Why should testers use Selenium instead of QTP?

Selenium is more widely used than QTP.

QTP is a commercial tool, whereas Selenium is open source.
Selenium is used to test web-based applications, whereas QTP can be used to test client-server applications. Selenium supports Firefox, Internet Explorer, Opera, and Safari on operating systems such as Windows, Mac, and Linux, whereas QTP is confined to Internet Explorer on Windows.
Selenium supports a variety of programming languages, including Ruby, Perl, and Python, whereas QTP does not.

Only registered users can post comments. Please, login or signup.

Start blogging about your favorite technologies, reach more readers and earn rewards!

Join other developers and claim your FAUN account now!


dridhOn Services


"World's #1 Online Certification IT Courses! dridhOn will provide you Best Software Training with Placement on all IT Courses."
User Popularity



Total Hits