SDET Interview Questions Selenium

SDET Interview Questions: As software development has become more complex, the Software Development Engineer in Test (SDET) role has become an essential part of the software development process. An SDET is responsible for testing software applications, identifying and reporting bugs, and ensuring the software meets the requirements and specifications.

When interviewing for an SDET position, candidates should expect questions designed to test their technical knowledge, problem-solving skills, and understanding of testing methodologies. These questions can cover various topics, from programming languages and algorithms to testing frameworks and software design patterns. In this article, we will explore some common SDET interview questions that candidates may encounter during the hiring process.

In addition to technical knowledge and problem-solving skills, SDET interview questions may assess a candidate’s ability to collaborate with other software development team members, communicate effectively, and adapt to changing requirements and timelines. Hiring managers may also ask about candidates’ experience with agile methodologies, continuous integration and delivery, and test automation frameworks.

Some common technical topics that may be covered in SDET interview questions include data structures, algorithms, software architecture patterns, database management, and web application security. Additionally, candidates may be asked to demonstrate their proficiency with specific programming languages such as Java, Python, or C# and testing frameworks such as Selenium, Appium, or JUnit.

By preparing for these questions in advance, SDET candidates can increase their chances of impressing hiring managers and securing a position in this exciting and rewarding field.

SDET Interview Questions Java

  • What is SDET?
  • What are the prominent roles and responsibilities of SDET?
  • What is the skill set required for an SDET role?
  • What is Adhoc Testing? How can we define ad-hoc testing in the current IT industry?
  • What are the key differences between a Software Development Engineer in Test (SDET) and a Manual Tester?
  • What is the code inspection in the context of software testing? What are the steps involved in code inspection?
  • What is the main difference between Severity and Priority?
  • What are the advantages of code inspection in software testing?
  • What are the critical differences between exploratory and Ad hoc testing?
  • What do you understand by Alpha and Beta Testing?
  • What is the Fuzz Testing?
  • What do you understand by Risk-Based Testing?
  • How can you decide what product is ready to ship?
  • What is the crucial difference between Quality Assurance and Quality Control?
  • What do you understand by a bug report in software testing?
  • What are the qualities of a good bug report?
  • What are the most prominent elements of a bug report in software testing?
  • What are some software testing tools used in the industry? Explain their key features also.
  • What are the main objectives of alpha testing?
  • What are the different types of beta testing?
  • What is the key difference between Code Walkthrough and Code Inspection?
  • What are the key differences between Alpha and Beta testing?
  • How can we test the text boxes without changing their backgrounds?
  • Which specific format of the bug report, a tester can be demanded?
  • What would a tester do if there is no proper testing documentation available?
  • What is oops concept
  • Explain the main() method.
  • Explain system.Out.Println();
  • Explain polymorphism
  • What is encapsulation
  • What is constructor
  • Write a program for string anagram.
  • Program for string reverse
  • Program for integer reverse
  • Program to find the count for the duplicate character in a string
  • Program for removing duplicates from a string
  • Program for palindrome
  • What is the difference between string and StringBuffer
  • What is the difference between immutable and mutable
  • Difference between ==operator and .Equals() method.
  • What is a static constant pool?
  • Difference between interface and abstract class
  • What is the difference between Break and Continue
  • Overloading and overriding
  • Difference between array and ArrayList
  • Difference between list and set
  • Explain the oops concepts used in the framework.
  • What is abstraction? How you implemented abstraction in your framework
  • Abstract class vs interface
  • What is a static method? How will you call a static method
  • What is a static variable? What will you call it?
  • What’s the use of abstract class
  • What’s the use of an interface
  • Local variable vs instance variable
  • How you implemented polymorphism in your framework? With an example
  • What is method overloading? How will you implement it? With an example
  • What’s the method overriding? How will you do it?
  • Why is the main method static?
  • Length vs length() difference
  • What are collections?
  • Set vs ArrayList
  • What’s a hashmap? Why do we use hashmap
  • Private vs protected difference
  • Program to print the number of occurrences of each character in the string “Abcdab”
  • Write a program for string reverse.
  • Write a program for Fibonacci.
  • Write a program to check whether a number is a prime.
  • Does java support multiple inheritances?
  • Write a code for the number of characters in a string.
  • How to connect java application with oracle database
  • Difference between interface and abstract class
  • Can we execute java code without main()
  • Oops concept and difference between overloading and overriding
  • Find the top from the array list(10 numbers) using the java code
  • Check logic for the Fibonacci series, even/odd number, the top value from the 5th number.
  • What are the access modifier and differences? Public, private, protected, default
  • What is an abstract class with an example
  • Polymorphism
  • Inheritance
  • Collection-set, list, map
  • Exception-exception, error, assertion
  • The oops-type casting of object
  • Wrapper classes
  • What is Access Modifier in Java?
  • OOPS Concepts and its practical implementation in your framework.
  • What is the use of super keyword?
  • What is the difference between equals and == operators?
  • What is the difference between in final, finally and finalise keywords?
  • What is the difference between in Abstract Class and Interface?
  • What is the difference between in throw, throws and throwable keywords?
  • What are collections and where did you use those collections in your frameworks?
  • What is the difference between in Java 8 and Java 11 version?
  • Can we use try and finally block without using catch block?
  • What is static and dynamic binding?
  • Can be make constructor private? If Yes/No, please provide explanation.
  • Can be make constructor as a static? If Yes/No, please provide explanation.
  • Can we achieve multiple inheritance? If Yes/No, please provide explanation.
  • How HashMap internally works?
  • Define java collections?
  • Why Strings are Immutable?
  • What is a method overloading and method overriding? Give some real examples. Where did you use in your framework?
  • What is the base class for class in java?
  • Is HashMap a thread safe?
  • What is a deadlock condition?
  • What is the difference between a Comparable and Comparator?
  • What is the use of synchronise keyword?
  • What is the use of static and final keyword?
  • Can constructor be overloaded? If Yes/No, please provide explanation?
  • What is HashSet and how it internally works?
  • Difference between in Binary Tree and Binary Search Tree?
  • What is the use of default constructor?
  • What is the super class of all classes in java?
  • Can we inherit final method/variables in sub-class
  • Tell me about yourself
  • Rate yourself in java
  • Beforemethod vs beforetest in TestNG
  • In a webpage there are few elements which execute fine a few times and fail a few times, what is the reason
  • w.r.t above Q. how to handle it
  • In a Webpage few elements are dynamic, how to handle it
  • How many kinds of locators are there
  • Why ID is most preferred
  • Xpath vs css, which is better
  • In a Text box, I need to pass only Upper case values, where text is extracted from outside source(ex.excel) and here in excel, the values are in lowercase, now without using any Java APIs, using only Selenium, how do you pass only Upper case values
  • Explain the framework you designed from scratch
  • Have you worked in keyword driven framework
  • Explain the complete approach for Data-driven Testing implemented in the framework you are working on
  • What is Arraylist
  • Arrays vs ArrayList
  • Explain about Hashmap in detail
  • What does Thread safe means?
  • How do you handle browser windows
  • Write Code from scratch for Add to cart Validations in Amazon Website
  • How to handle dynamic drop-downs
  • Throw vs throws
  • How to run test cases in parallel in Selenium
  • Complete approach to handle dynamic webtable
  • Why APIs?
  • Rest Vs Soap
  • Soap or Rest , which is better
  • What are advantages of Rest over Soap
  • Why in your project, Rest API is used
  • Explain about Multithreading in Java
  • How you have handled Date and Time in your Framework
  • In banking application, when money transactions are more , do you prefer Rest or Soap
  • Do you have any questions to ask
  • Get Row and Column values from an HTML WebTable
  • Switch to a specific window out of 100 windows and validate it
  • Find Broken Links in Selenium /How do you find broken links in Selenium WebDriver?
  • What is the same-origin policy and how is it handled?
  • What is the major difference between driver.close() and driver.quit()?
  • How to scroll down a page using JavaScript?
  • How to mouse hover over a web element?
  • What is POM (Page Object Model)?
  • How does Selenium handle Windows-based pop-ups?
  • How to take screenshots in WebDriver?
  • Is there a way to type in a textbox without using sendKeys()?
  • How to upload a file in Selenium WebDriver?
  • When do we use findElement() and findElements()?
  • How do you perform drag and drop operations in WebDriver?
  • How do you deal with stale element exceptions in Selenium
  • Need to fetch Row & Column values from an HTML WebTable?
  • Ever tackled switching to a specific window out of 100? ߪߠValidate it too!
  • Broken Links – how to spot them using Selenium?
  • Wrap your head around the same-origin policy and how it’s handled.
  • Quickie: What sets driver.close() apart from driver.quit()?
  • Want to scroll down a page with JavaScript?
  • Hovering over a web element – how’s it done?
  • Know about the mighty POM (Page Object Model)?
  • Windows-based pop-ups got nothing on Selenium! How does it handle them?
  • Snapping screenshots with WebDriver – share the magic!
  • Typing in a textbox without sendKeys()? Is that even possible?
  • Time to learn file uploads in Selenium WebDriver!
  • FindElement() vs. FindElements() – when to use which?
  • Up your game: master drag and drop in WebDriver.
  • Stale element exceptions – how to deal with in Selenium

SDET Interview Questions Selenium

  • Explain your framework
  • What is the sequence of TestNG annotations
  • Dataprovider annotations and their uses
  • Parallel execution in selenium
  • Explain selenium grid
  • Explain assertions, hard assertions, and soft assertions.
  • Explain you framework
  • Absolute vs relative XPath
  • How to get all the sibling elements
  • Questions on XPath techniques
  • How to come out of a frame?
  • How to handle popup
  • How to check whether an alert is available?
  • How to find hidden elements
  • How does the mouse hover over elements
  • What is a webdriver? How it works
  • How to implement scrolling in selenium
  • How to handle multiple windows
  • What is the return type of getwindowhandles
  • How to handle drop-down
  • How to skip specific test cases while executing using TestNG
  • TestNG annotations
  • Use of listener and reporter
  • Parameterization in TestNG
  • Describe the framework design & overall flow diagram used in your project.
  • How to handle windows authentication popups with & without using third-party tools.
  • What are the different types of exceptions in selenium webdriver?
  • What are the different types of methods in selenium?
  • Can we enter text without using sendkeys()? If yes, how?
  • How to find more than one web element in the list?
  • What is the difference between driver.Close() and driver.Quit command?
  • What is the difference between findelement/findelements?
  • How to count the number of links on a page?
  • Difference between assert and verify in selenium webdriver
  • How to take a screenshot using selenium webdriver?
  • How will you execute your login script using the chrome browser from your editor using selenium?
  • Can we use multiple catch block inside a try block, how?
  • What is the difference between webdriver/firefoxdriver?
  • What is the difference between “get” and “navigate” to open a web page in a selenium web driver?
  • Using the selenium web driver, how can we get the font size, font color, and font type used for a particular text on a web page?
  • How do you manage the code versions in your project?
  • How do we handle dynamic elements without using XPath?
  • How to handle alerts and confirmation boxes.
  • How to handle colors in webdriver?
  • How does press shift +tab?
  • How to take a screenshot in selenium.
  • How does the selenium webdriver work?
  • How do you create an HTML test report from y our test script
  • How do you handle HTTPS websites in selenium
  • How the TestNG interact with the selenium core
  • How to change the user agent in Firefox by selenium webdriver
  • How to check all checkboxes on a page
  • How to disable cookies in a browser
  • How to get the name of the browser using webdriver?
  • How to handle the ajax popup window
  • How to handle autocomplete box in webdriver
  • How to handle network latency using selenium
  • How to know all the methods supported in webdriver and its syntax
  • How to login into any site if it shows an authentication pop-up for user name and password during the launch of the URL
  • How to mouser hover on an element.
  • How to pass parameters from testng.Xml into test cases
  • How to perform double click using webdriver
  • How to prepare customized HTML reports using TestNG in a hybrid framework
  • How to put text in any search box using selenium webdriver
  • How to refresh a page without using a context click?
  • How to run tests in multiple browser parallel (selenium grid )
  • How to store a value which is text boxes, using webdriver?
  • How to switch between the windows
  • How to type next in a new line inside a text area
  • How to work with dynamic web table
  • How to work with the radio button in webdriver
  • How can we retrieve the dynamically changing ads
  • If a selenium function requires a script argument, what would that argument look like in general terms?
  • If TestNG, I have tests test-1, test-2, test-3, test-4 and test-5. I want to run my execution order as test-5, test-4, test-3, test-2 and test-1. How do you set the execution order? Can you explain that?
  • The latest version of Firefox and selenium in the market and the version on which you are testing
  • List the browsers, os supported by the selenium
  • Please tell me the difference b/w implicit wait and explicit wait
  • Provide detail about the TestNG test output folder.
  • Suppose the developer changed the existing image to a new image with the same XPath. Is the test case pass or fail
  • There is a scenario where “assert.Assertequals()” function fails automatically; it has to take the screenshot. How can you achieve this
  • Is there a way to click the hidden links in webdriver?
  • What are the technical challenges that you faced with selenium?
  • What classes extend webdriver
  • What is an action class in webdriver?
  • What is selense?
  • What is the hierarchy of TestNG annotation
  • What is selenium? What are the different selenium components?
  • What is an XPath?
  • How to refresh a page without using a context click?
  • How to handle autocomplete box in webdriver?
  • The difference between selenium 1.0 and selenium 2.0 ??
  • How to switch between the windows (getwindowhandle and getwindowhandles)
  • How to read a particular cell from an HTML table
  • How to switch between frames in selenium webdriver
  • What are the different types of locators in selenium?
  • How to handle the ajax popup window
  • How to connect to excel code for excel(poi) API to read excel,
  • Retry executing only failed tests using TestNG
  • Relative XPath method
  • Parallel execution of test methods in TestNG
  • Parallel execution of classes in TestNG
  • Testing in multiple browsers using selenium and TestNG
  • Find out broken links on a website using selenium webdriver and HTTP client
  • Find broken/invalid images on a page
  • How to handle internationalization through webdriver?
  • Page object model | pom
  • Taking screenshots only for failed tests
  • Wait commands in webdriver
  • What is a TestNG listener?
  • How to select an element from the dropdown?
  • What is a webdriver event listener?
  • What are the benefits of using TestNG
  • What are browsers supported by selenium ide
  • What are different access specifiers in java
  • What are the different assertions or checkpoints used in your script?
  • What are the different parameters for @test annotation
  • What are the different types of driver implementation
  • What are the features of TestNG?
  • What is the operating system supported by selenium
  • What are the possible scenarios where selenium findelement get fails
  • What is the basic use of firefox profiles, and how can we use them using selenium
  • What is the default time for selenium ide and webdriver
  • What is the difference b/w getwindowhandle and getwindowhandles
  • What is the difference between get and navigate to open a web page in selenium webdriver
  • What is the difference between the @before method and @ before class?
  • What is the difference between absolute path and relative path
  • What is the difference between driver.Close() and driver.Quit()
  • What is the difference between selenium RC and webdriver
  • What is the difference between single and double slash
  • What is the difference between thread.Sleep() and seleniumsetspeed(“2000”)
  • What is the difference between thread.Sleep() and selenium.Setspeed()
  • What is the most challenging test problem in my career automation
  • What mobile devices does it support
  • What are the different methods to locate an element?
  • Which one is better, one XPath or CSS
  • Which repository have you used to store the test scripts?
  • Why do we refer firefox driver to the webdriver inheritance
  • Write a code to use assert if my user name is incorrect.
  • Write a java program for swapping two numbers.
  • Write down scenarios that we can’t automate.
  • What are the differences between selenium webdriver, ide, and RC?
  • What do desired capabilities do?
  • What is the actions class in webdriver
  • What is the difference between overload and override
  • What is the difference between webdriver and listener and TestNG listener
  • Read particular cells from the HTML table
  • The logic for looping the table, XPath to iterate rows & columns
  • Can we run a group of test cases using TestNG
  • Code for opening the Firefox browser
  • Does selenium support HTTPS protocols?
  • Downloading a file and save it?
  • Explain any 3 TestNG annotations.
  • TestNG- write sample code to select a browser depending on the parameter given in testing.Xml
  • Parameter annotation, how to add system property for chrome/iedriver.Exe for chrome & ie
  • How to check results with expected assert.Assertequals().
  • Implicit wait and explicit wait- webdriverwait or thread.Sleep()
  • What is rest API
  • Explain rest request methods (get, post, put)
  • Explain status codes like 200, 400, 404, 500, etc.
  • What is POJO class, and how to use it to rest assured?
  • How will you handle responses if they are nested JSON?
  • How to do setup for appium
  • Explain maven and pom.Xml
  • Explain log4j and how to customize it
  • Primary key vs foreign key
  • What is join
  • Drop vs truncate
  • Can we retrieve the data after a drop or truncate
  • How will provide story points for testing
  • How will you estimate automation efforts
  • How will you decide whether to automate or not
  • Defect cycle in Jira
  • What is a deferred bug
  • Bug leakage vs bug release
  • Given an array, find the kth largest element from an array optimised solutions
  • Given a string , find which bank has 4th largest deposits. [BankA$151.54B, BankB$81.4B, BankC$1$524.2B, BankD$2.54B, BankE$44.23B, BankF$124.54B, BankG$12.21B ] If two banks have same number of deposits, consider only one value.
  • Given an array, find the maximum possible combinations of triangle.
  • Given a string, remove any character that appears more than once in the string.
  • Given a string, reverse the string, keeping the space position intact.
  • Count the numbers of prime numbers from 1 to N, using most optimised way.
  • Given a string, find the longest palindrome substring.
  • How can you print a Pascal’s triangle.
  • Given an array of integers, validate if that array is a valid mountain array.
  • If the above array is a valid mountain array, then find the peak index.
  • Given a string (e.g “this is first sentence. this is second. And this is third”). Write a method that will return an array of hashmaps such that each hashmap in array will be 1 sentence and every hashMap will contain (word number, word) of that sentence.
  • How can you implement mergesort using recursion.
  • Given a string “Hello! How are you 🙂 I am great :D” considering 🙂 and 😀 as smileys, print the count of smileys as 2
  • Find the depth of a binary tree without using recursio

Conclusion:

SDET interview questions related to Selenium are designed to assess the technical expertise of candidates applying for software development and testing roles. These questions cover various topics, from basic programming concepts to advanced test automation techniques, and require candidates to demonstrate their knowledge and problem-solving skills.

By preparing thoroughly for these types of interviews, candidates can increase their chances of success and impress potential employers with their technical abilities. Ultimately, using Selenium effectively is a valuable skill in the software development and testing industry, and SDET interview questions related to Selenium play an important role in identifying top talent.

If you have gone through an SDET interview, please feel free to share your insights on the types of questions asked, your preparation strategy, and any tips you may have for other candidates. Similarly, if you have any suggestions for improving the interview process or the types of questions asked, we would love to hear them. And if you have any questions related to SDET interviews or Selenium, please don’t hesitate to ask in the comments section. We are here to support and assist you in any way we can.

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that's why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to softwaretestingo.com@gmail.com, or You can join me on Linkedin.

Leave a Comment