Updated on: October 17, 2019
Before starting anything new, it is always recommended to keep the base or the basics strong to help build a sound and sustainable structure or a career. Similarly, before finding answers to Selenium tricky interview questions, we will first learn the meaning and use of Selenium tool to make the understanding of its advanced levels easy.
Watch Here About: What is Selenium ?
So what is Selenium? Invented by Jason Huggins in 2004, Selenium is a cross-platform and portable automation testing framework. Selenium as a cross-platform framework means a Selenium script written on one operating software say Mac can run on other supported operating systems like Linux, Windows, etc.
Without the need of making any changes. Whereas, portable framework means a script created for a desktop based device can run on different supported devices such as tablets, mobile phones, etc.
The use of Selenium is to write automation scripts for testing web applications. This improves productivity and quality and thus, reduces efforts required in conducting manual testing.
you can also learn here Top 10 Reasons To Learn Selenium
Here, in this blog article, we have included questions on all elementary, intermediate and advanced Selenium interview questions that are commonly asked in a Selenium interviews. So, following are the few selected Selenium interview questions asked in companies that are frequent on every Selenium interviewer’s list, some of which are important too.
Q 1.) What is Automation Testing?
Q 2.) What are the benefits of Automation Testing?
● It supports execution of repeated test cases
● It helps in saving time and money
● It improves accuracy, which reduces human generated errors.
● It enables parallel execution
● It assists in testing a large test matrix
● It encourages unattended execution
Q 3.) What are the reasons for selecting Selenium as a test tool?
● Selenium is a free and open source tool
● Selenium has a cross browser compatibility like Firefox, Safari, Internet Explorer, Chrome, etc.
● It also provides a great platform compatibility, such as Windows, Mac OS, Linux, etc.
● It supports multiple programming languages, which includes Java, C++, Ruby, Python, Pearl, etc.
● Selenium has a regular and fresh repository developments
● It also supports distributed testing.
Q 4.) Define different Selenium components?
● Selenium Integrated Development Environment (IDE): Selenium IDE acts as a record and playback tool, which is distributed as a Firefox Plugin.
● Selenium Remote Control (RC): Selenium RC is a server that helps users in creating test scripts in the desired programming language. It also permits executing test scripts within the huge spectrum of browsers.
● Selenium WebDriver: Here, there is a direct communication between Selenium WebDriver and the web browser, where the WebDriver uses its native compatibility to automate.
● Selenium Grid: The use of Selenium Grid is to distribute the test execution on multiple platforms and environments simultaneously.
Q 5.) What are the testing types supported by Selenium?
1.) Regression Testing
2.) Functional Testing
Q 6.) State the limitations of Selenium.
● Testing of only web based applications is supported by Selenium
● Testing of mobile applications is not possible using Selenium
● Testing of Captcha and Barcode readers are not possible using Selenium
● Reports can only be generated with the help of third party tools like TestNG or JUnit
● Prior programming language knowledge is expected to be possessed by the user.
Q7.) Define Selenese?
Q 8.) When is Selenium IDE used?
Q 9.) What are locators in Selenium and name the different types of locators in Selenium?
● ID
● DOM
● CSS Selector
● Name
● PartialLinkText
● TagName
● ClassName
● LinkText
● Xpath
Q 10.) Which is the latest Selenium tool and what do you mean by Selenium 1 and Selenium 2?
Individually, Selenium RC is called as Selenium 1 and collectively, WebDriver and Selenium RC are commonly known as Selenium 2.
Q 11.) Differentiate between Selenium IDE, Selenium RC, and WebDriver?
1. Browser Compatibility
2. Record and Playback
3. Server Requirement
4. Architecture
5. Object Oriented
Selenium IDE
1. Selenium IDE supports only Firefox since it comes as a Firefox plugin.
2. Record and playback feature is present in Selenium IDE.
3. Starting any server before executing the test scripts is not required in Selenium IDE.
4. Selenium IDE is based on JavaScript framework.
5. It is not an object oriented tool.
Selenium RC
1. A varied range of versions of Mozilla Firefox, Opera, Goggle Chrome, Internet Explorer and are supported by Selenium RC.
2. Record and playback feature is absent in Selenium RC.
3. Starting any server before executing the test scripts is required in Selenium RC.
4. Selenium RC is also based on JavaScript framework.
5. It is a semi object oriented tool.
Web Driver
1. Along with a varied range of versions of Mozilla Firefox, Goggle Chrome, Internet Explorer and Opera, WebDriver also supports HTMLUnitDriver, which is a GUI less or headless browser.
2. WebDriver also lacks playback and record feature.
3. To execute the test scripts, starting any server is not required in WebDriver either.
4. Browser’s native compatibility is used by WebDriver for automation.
5. It is purely an object oriented tool.
Take Selenium Training in Gurgaon
We hope that this blog article on best Selenium interview questions will help you prepare best for your Selenium interview. Though the above questions are not exhaustive, but are comprehensive that will surely give you an overall understanding of the tool. For more information please contact SSDN Technologies as we are a pioneer in providing technical services and training of all kinds.