Selenium is a web application testing framework. It does not require scripts writing. It is easy to use. Selenium makes web testing faster. Hence, the skill to use selenium is given preference while selection of a web tester. In this article, we have covered a number of selenium interview questions with answers which would help you in preparing your job interview.
Table of Contents
Selenium is a web application testing framework. It is an automated testing tool which requires no knowledge of scripting.
Selenium consists of three major components. These parts are:
WebDriver allows direct communication of web browser by using its native compatibility for automation. RC component provides APIs for different programming languages like .NET, PHP, Java, NodeJS etc. It is compatible with most of the browsers.
Selenium IDE is an integrated development environment tool to record and playback. It is a firefox plugin. Practically, I have used Selenium IDE on Firefox 50.0 version. However, support for the current version may vary.
You may download Selenium IDE FireFox extension here.
To distribute tests on multiple machines for running tests parallel to save time, grid can be used.
It is not just an important selenium interview question, but a frequently used function.
A webpage is rendered as elements, sometimes called as HTML tags. There are different identifiers or locators based on which we can select and distinguish an element in web page. These locators or identifiers are:
There are two kinds of tests which can be supported by selenium before release.
To verify a state of the application conforms to what is expected, assertion is used.
Selenium has three main kinds of assertions:
Xpath is usually used when application is generating elements dynamically. Otherwise, it is easier to use other identifiers for testing.
It is automated testing.
Automated testing means to create testing scripts and run them. They will keep testing the application. It does not require manual intervention.
No, Selenium supports testing web-based applications only. We can not test mobile applications on selenium.
No, it is not possible to test captcha or barcode with Selenium yet (until date of publishing this article).
No, we cannot generate reports on Selenium directly. However, we can use thrid party tools like JUnit or TestNG to generate reports.
No, selenium does not support bitmap comparison.
Double slash is used to create relative path and starts selection matching everywhere in the document. Whereas single slash is used to create absolute path and starts selection from document node.
To submit a form, use click or element.submit().
To click on particular area on screen clickAt (locator, coordinateString) can be used.
You may launch web browser using WebDriver as:
These selenium interview questions are very important from an interview preparation point of view. These selenium interview questions list covers commonly asked questions. While you are applying for web testing position, an interviewer never keeps asking questions about one tool. Therefore, along with selenium interview questions, you may have strong command in programming questions as well. You would like to read our article on Computer Science Interview Questions and PHP Interview Questions.
NGINX Server Nginx, a popular open-source web server, excels at handling high traffic websites efficiently.… Read More
In the realm of web hosting, choosing the right web server is paramount. It acts… Read More
Are indispensable for ensuring smooth, precise linear motion in many industrial applications. Whether in robotics,… Read More
Cyber attacks are becoming more frequent, complex, and damaging. They can disrupt critical operations and… Read More
With the rise of new threats and the increasing complexity of IT environments, organizations need… Read More
1. Introduction In software design, managing complex systems can be challenging. The Facade Design Pattern… Read More
View Comments
Thanks for sharing it.I got Very valuable information from your blog.your post is really very Informative. I’m satisfied with the information that you provide for me.Selenium is powerful. It will support different language,ifferent platform.Selenium is a open source. Multi user can use at a time.Selenium also supports for mobile testing. Simulators like Ipad, Iphone and android phone we can test using selenium. So Selenium people are in demand now.By reading your blog, i get inspired and this provides some useful information.