Selenium is available as an open-source automated testing suite used for numerous web applications in diverse platforms and browsers. It is found that Selenium is quite similar to HP Quick Test Pro (QTP and now also known as UFT). There is only one difference that it emphases on automating web-based applications. If you think it is a single tool, then it is not. Selenium is present as a suite of software’s includes the testing requirement in an organization.
Here, we are discussing some of the critical questions asked at the time of the interview.
Q: 1 – What do you understand by Automation Testing?
Automation testing, also known as test automation, is known as a procedure used for automating manual processes required for testing the systems or applications under test. There are separate testing tools used in the complete procedure and meant for creating test scripts. Well, there is no requirement for manual intervention.
Q: 2 – What are the advantages of Automation testing?
If you also want to know about the noted benefits of Automation testing, they are mentioned as –
- Backup the execution of chronic test cases.
- Assist in the testing higher test matrix.
- Allow simple parallel execution.
- Inspires unattended implementation.
- Progresses precision by minimizing human-generated errors.
- Saves your money as well as time at the same time.
Q: 3 – Why should you use Selenium as a test tool?
The experts have suggested lots of reasons behind choosing Selenium as a testing tool.
- It is present as an open source.
- Comprises of enormous user base and serving communities.
- Selenium is highly compatible with Chrome, Internet Explorer, Firefox, and others.
- Show pronounced compatibility with different platforms named as Mac OS, Linux, Windows, etc.
- Highly support diverse programming languages like Java, Ruby, Python, etc.
- Comprises of recent and steady repository developments.
- Superbly supports distributed testing.
Q: 4 – How many components are there in Selenium?
You should have at least a little idea about Selenium. It is a comprehensive automated testing suite designed basically for supporting automation testing. Being exists as an open-source community; Selenium is widely accepted amongst professionals performing different tests. The tool is present as a package of numerous testing tools and is also referred to as a Suite. Each tool is specially designed for serving the purpose of test requirements. We are mentioning here various sets of tools that you should know.
- Selenium Remote Control (RC): It is available as a server, which generally allows users to make test scripts in a programming language.
- Selenium Grid: This tool is meant for distributing test execution on various platforms.
- Selenium WebDriver: WebDriver has noted benefits as compared to Selenium RC. It is used for communicating with a web browser and make usage of native compatibility for automation purposes.
- Selenium Integrated Development Environment (IDE): It is highly popular as a record as well as a playback tool and widely distributed amongst Firefox Plugin.
Q: 5 – Do you know about testing types that are supported by Selenium?
Selenium is known for supporting certain kinds of testing named – Regression tests and Functional testing.
Q: 6 – What is the perfect time to practice Selenium IDE?
Selenium is one of the pretentious and stress-free tools that come with the package. The offered tool is used for recording and playback the feature that is quite easy to learn with negligible connections. Thus, it is a unique tool meant destined for naïve users.
Q: 7 – Do you have any idea about XPath?
XPath is primarily intended for locating web element works on the XML path. Explaining the XMAL, it is defined as Extensible Markup Language. Well, Selenium is used by experts for storing, transporting, and organizing arbitrary data. The best thing about it is that it stores data in the form of key-value pairs, just like HTML tags. Therefore, XPath is ideal for locating HTML elements.
Q: 8 – Are there any limitations related to Selenium?
There are noted limitations linked to Selenium mentioned as –
- Highly supports web-based application testing procedures.
- You cannot test mobile applications by Selenium.
- Selenium is not used for testing Barcode and Captcha.
- Some of the third party tools like JUnit and TestNG that only be used for generating reports.
- It is present as a free tool. Hence, you cannot find ready support given by the vendor via the user to help different communities.
Q: 9 – What are the types of waits present in WebDriver?
In general, there are two kinds of waits given in WebDriver.
- Implicit wait
Talking about Implicit waits; it is widely used for offering a default waiting time basically of about 30 seconds. It is provided in between every consecutive test step around entire test scripts.
- Explicit wait
According to the experts, explicit waits are generally used for halting the execution up till a particular condition doesn’t meet. They are basically applied for a specific instance.
Q: 10 – Do you know about different kinds of locators in Selenium?
The locator is defined as an address designed for identifying web elements within a webpage. So, it becomes essential to learn about types of Selenium in a precise manner. Some of the locators are –
- CSS Selector
Q: 11 – When should a Selenium Grid be used?
Selenium Grid is defined for executing different or similar test scripts while using multiple platforms along with browsers. Thus, it helps attain dispersed test execution under several environments.
Q: 12 – What is the fundamental difference between verify commands and assert?
Verify – Verify acts as a command inevitable to check either the given condition is false or true. Regardless of condition, the program cannot be halt. If there is any failure that not at all means, execution will stop.
Assert – Assert is a command also used for checking the condition. In case the condition is right at that time, the program control is further taken to the next test step. If the condition comes out to be false, then execution will not be stopped, and the test will also not be done further.
Q: 13 – Tell us about different kinds of Drivers present in WebDriver
The WebDriver is generally available in numerous drivers like –
- Internet Explorer Driver
- HTML Unit Driver
- Safari Driver
- Android Driver
- iPhone Driver
- Firefox Driver
- Chrome Driver
- Opera Driver
Get well prepared!