Selenium Interview Questions And Answers

selenium interview questions and answers   Top 8 Selenium Interview Questions And Answers

1) What is Selenium?

Selenium is the most popular open source automated testing tool. It specifically designed to support Automation Testing of functional aspects of web based applications, wide range of platforms and browsers.

2) What are the different high level components of Selenium?

Following are the components of Selenium:

Selenium IDE (Integrated Development Environment) : It is a tool for recording and playing back. It is a firefox plugin
WebDriver and RC: It provide the APIs for a variety of languages like Java, .NET, PHP, etc. With most of the browsers Webdriver and RC works.
Grid: With the help of Grid one can distribute tests on multiple machines so that test can be run parallel which helps in cutting down the time required for running in browser test suites

3) What is Selenium 3.0?

Selenium 3.0 is the latest version of Selenium. It has released 2 beta versions of selenium 3.0 with few of the new features.

4) What are the advantages of Selenium?

Following are the components of Selenium:

● It supports C#, PHP, Java, Perl, Phython
● It supports different OS like Windows, Linux and Mac OS
● It has got powerful methods to locate elements (Xpath, DOM , CSS)
● It has highly developer community supported by Google

5) What are the input parameters in Selenium?

Following are the four parameters that you have to pass in Selenium:

● Host
● Port Number
● Browser

6) In Selenium what is the difference between setSpeed() and sleep() methods?

Both will delay the speed of execution.
● Thread.sleep () : It will stop the current (java) thread for the specified period of time. Its done only once. It takes a single argument in integer format.
● setSpeed () : For specific amount of time it will stop the execution for every selenium command.

7) How to submit a form using Selenium?

Submit method can be used to submit the form in Selenium:

element.submit ();

8) What is Object Repository in Selenium?

In Selenium an object repository is an essential entity in any UI automations which allows a tester to store all object that will be used in the scripts in one or more centralized locations rather than scattered all over the test scripts.