Wednesday 31 May 2017

Top Selenium Interview Questions For Beginners

1. What is Selenium?

Ans : Wikipedia defines Selenium as “a portable software testing  framework for web applications. Selenium provides a record/playback tool for authoring tests without learning a test scripting language.”
In other words, Selenium is a browser automation tool that allows you to automate operations such as Type, Click, and Selection from a web page drop down.

2. When should one use Selenium Grid?

Ans : Selenium Grid could be used to execute the same or different test scripts on multiple platforms and browsers in parallel. It helps achieve distributed test execution, testing under different environments and saving execution timelines.

3. What Is Selenium And What Are Its Popular Versions?
Ans : Selenium is the most popular testing tool for web-based UI automation. It exposes a set of APIs which support multiple platforms (e.g. Linux, Windows, Mac OS X, and so on). Also, all modern browsers likes of Google Chrome, Mozilla Firefox, Internet Explorer, and Safari can be used to run Selenium tests. And it also covers Android platform where Appium is the tool which implements Selenium Webdriver interface for mobile automation.
Notably, Selenium had three major releases apart from many subsequent minor ones. 
4. What Is Selenium Server And How Does It Differ From Selenium Hub?
Ans : Selenium server is a standalone application for using a single server as a test node. Selenium hub acts as a proxy in front of one or more Selenium node instances. A hub + node(s) is called a Selenium grid. Running Selenium server is similar to creating a Selenium grid from a hub and a single node on the same host.
5. How Will You Write A User Extension For Selenium IDE/RC?
Ans :  User extensions are stored in a separate file that Selenium IDE or Selenium RC uses to activate the extensions. It comprises of function definitions which are written in JavaScript. Because Selenium’s core is developed in JavaScript, creating an extension follows the similar standard rules for prototypal languages. To create an extension, we have to write a function in the following design format.

6.How Will You Start The Selenium Server From Java?

ans : try {
seleniumServer = new SeleniumServer();
seleniumServer.start();
} catch (Exception e) {
e.printStackTrace();
}

Are You Learn For Selenium Automation Testing Training We are Best Selenium Training in Chennai