Selenium Interview Questions

Question 1:

What is automation testing?

Automation testing is a process of automating the existing manual process to test the application. Separate tools are available for automation testing which lets you create test scripts which can be executed repeatedly and does not require any manual intervention.

Question 2:

What are the advantages/benefits of automation testing?

  • Decrease costs and reduces test time. 
  • Increase Test Efficiency, Test Speed and Software Quality.
  • Improve accuracy.
  • Reduce human-generated errors.
Question 3:

What is the need of automation testing?

It is a challenge for any company to continuously maintain the quality and efficiency of the application. So with the use of automation testing, we can improve the quality and efficiency of our application continuously. Automated test cases can run fast frequently, which is cost-effective for software products with a long maintenance life.

Question 4:

What is Selenium?

Selenium is an open source automation tool which provides the facility to automate web application. It is composed of Selenium IDE. It’s a tool for recording & playing back. Selenium is designed to support automation testing of function aspects of web application and platforms. It supports multiple programming languages like

  • Java
  • .Net
  • Python
  • Perl
  • Ruby etc.

Selenium is not a single tool rather a package of several testing tools. It has four components.

Components of selenium

Selenium IDE:

Selenium IDE is an Integrated Development Environment for selenium tests. It is implemented as a Firefox-Add-On and provides the features for recording, editing and debugging tests. It was previously known as Selenium Recorder.

Selenium RC:

Selenium RC is known as a Selenium Remote Control. It is a server that provides the facility to write automated web application UI tests in desired programming language against any HTTP website using any JavaScript-enabled browser.

Web Driver:

Web Driver is designed in a way to provide a simple, more abbreviated programming interface in addition to addressing some limitations in Selenium RC. Web Driver was developed to providing the better support to dynamic web pages where elements of a page may change without the page itself being reloaded.

Selenium Grid:

Selenium Grid allows you to execute your tests on different machines against different browsers at the same time. Selenium Grid supports distributed test execution. It allows to execute your tests in distributed environment.

Question 5:

What are the limitations of Selenium?

  • Selenium does not support Mobile Application testing.
  • Selenium supports only web based application testing.
  • We can’t test Captcha & Bar Code using Selenium.
  • We can generate test reports using third party tools like JUnit or TestNG.

Question 6:

What are the types of testing that can be supported by selenium?

  • Regression Testing.
  • Functional Testing.
Question 7:

What are the different types of locators in Selenium?

Locators are used to identify the web elements accurately in a web page. Different types of locators are available in Selenium:

Different types of locators are available in Selenium are as following:

  • ID
  • Name
  • TagName
  • ClassName
  • Xpath
  • DOM
  • LinkText
  • CSS Selector
  • PartialLinkText
Question 8:

Which is the latest Selenium tool?

Web Driver

Question 9:

How do I launch the browser using Web Driver?

For FireFox browser:

WebDriver driver = new FireFoxDriver();

For Chrome Driver:

WebDriver driver = new ChromeDriver();
Question 10:

What are the different types of drivers are available in WebDriver?

  • FireFoxDriver.
  • ChromeDriver.
  • InternetExplorerDriver.
  • SafariDriver.
  • OperaDriver.
  • AndroidDriver.
  • HtmlUnitDriver.
  • IPhoneDriver.
Share interview questions


comments powered by Disqus


Social Media