Selenium Interview Questions & Answers
Tech Interviews
Published by Tech Interviews, 2017.
Selenium Interview Questions and Answers
C opyright 2017 by Tech Interviews
Cover and Internal design Tech Interviews
All rights reserved. No part of this book may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the author. All brand names and product names used in this book are trade names of their respective holders. I am not associated with any product or vendor in this.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Tech Interviews books are available at special quantity discount for sales, promotions or for use in corporate training programs. For more information, please write to
Please email feedback / corrections (technical, grammatically or spelling) to .
Preface
T his workbook contains extensive set of Selenium Interview Questions and Answers that can help clear your understanding on the topic and also help in responding to questions posed to an interviewee. With the difficulty level of questions ranging from low to high, we intend to cater to the requirements of masses.
We've identified that in today's competitive careers job market, it is essential that one should structure his/her responses in line with the questions asked. This guide exactly helps you in this area. It will show you how to do this to great effect.
The motto behind writing this book is to provide the readers a crisp yet extensive and complete set of questions asked in interviews. Ive provided clear explanation with question and answers to make concepts clear.
After going through this book, you will have clarity on the basics, structure and usage of Selenium. Also, youll be competitive enough to crack most of the interviews.
This book is not only for Selenium Practitioner but also for those who are interested in some brief of Selenium. We understand the need of good and quick technology knowledge for our jobs and also for interviews. I hope you will like this book which will inspire us to publish more helpful books for you.
Who Needs This Book?
T his guide will benefit:
- A beginner who has never faced any Automation interview
- Anyone who wants a brief on Selenium
- Professional who want answers with examples and explanation
- One who dont know what They really want to hear....
Need How To tips, phrases, and words for answering job interview questions.
Question 1:
What is Selenium?
Answer:
Selenium is a robust test automation suite that is used for automating web based applications. It supports multiple browsers, programming languages and platforms.
Question 2:
What are different components of selenium?
Answer:
Selenium has four components
- Selenium WebDriver - Selenium WebDriver is used to automate web applications using browser's native methods.
- Selenium IDE - A firefox plugin that works on record and play back principle.
- Selenium RC - Selenium Remote Control (RC) is officially deprecated by selenium and it used to work on javascript to automate the web applications.
- Selenium Grid - Allows selenium tests to run in parallel across multiple machines.
Question 3:
What are some advantages of selenium?
Answer:
Following are the advantages of selenium
- Selenium is open source and free to use without any licensing cost.
- It supports multiple languages like Java, ruby, python etc.
- It supports multi browser testing.
- It has good amount of resources and helping community over the internet.
- Using selenium IDE component, non-programmers can also write automation scripts
- Using selenium grid component, distributed testing can be carried out on remote machines possible.
Question 4:
What are some limitations of selenium?
Answer:
Following are the limitations of selenium
- We cannot test desktop application using selenium.
- We cannot test flash based apps using selenium.
- For creating robust scripts in selenium webdriver, programming langauge knowledge is required.
- We have to rely on external libraries and tools forperforming tasks like - logging(log4J), testing framework-(testNG, JUnit), reading from external files(POI for excels) etc.
Question 5:
Why do you prefer Selenium Automation Tool?
Answer:
- Free and open source
- Have large user base and helping communities
- Cross browser compatibility
- Platform compatibility
- Multiple programming languages support
Question 6:
What is Automation Testing?
Answer:
Automation testing is the process of testing the software using an automation tools to find the defects. In this process, executing the test scripts and generating the results are performed automatically by automation tools. Some most popular tools to do automation testing are HP QTP/UFT, Selenium WebDriver, etc.
Q uestion 7:
What are the benefits of Automation Testing?
Answer:
- Saves time and money. Automation testing is faster in execution.
- Reusability of code. Create one time and execute multiple times with less or no maintenance.
- Easy reporting. It generates automatic reports after test execution.
- Easy for compatibility testing. It enables parallel execution in combination of different OS and browser environments.
- Low cost maintenance. It is cheaper compared to manual testing in a long run.
- Automated testing is more reliable.
- Automated testing is more powerful and versatile.
- It is mostly used for regression testing. Supports execution of repeated test cases.
- Minimal manual intervention. Test scripts can be run unattended.
- Maximum coverage. It helps to increase the test coverage.
Question 8:
What type of tests you have automated?
Answer:
Our main focus is to automate test cases to do Regression testing, Smoke testing, and Sanity testing. Sometimes based on the project and the test time estimation, we do focus on End to End testing.
Question 9:
How many test cases you have automated per day?
Answer:
It depends on Test case scenario complexity and length. I did automate 2-5 test scenarios per day when the complexity is limited. Sometimes just 1 or fewer test scenarios in a day when the complexity is high.
Q uestion 10:
Compare Automated Testing & Manual Testing
Answer:
Criteria | Automated testing | Manual testing |
Speed | Excellent | Average |
Initial cost | High | Low |
Operation | Same operation each time | Operations are not accurate |
Recommended for | Frequent testing scenario | Single testing scenario |
Concurrency | Possible to test on different machines, OS and platforms simultaneously | Needs different testers to test on multiple machines & platforms |
Question 11:
Which all browsers are supported by selenium webdriver?
Answer:
Some commonly used browsers supported by selenium are