Selenium Tricky Interview Questions: Selenium is a popular tool used for automating web browser interactions, particularly for testing purposes. As such, job interviews for Selenium roles often include a range of tricky questions designed to test a candidate’s knowledge and experience with the tool.
These questions may cover Selenium commands and syntax, handling various types of web elements, debugging issues, and implementing effective test strategies. In this context, being well-prepared for tricky Selenium interview questions is crucial for anyone seeking a role in Selenium automation testing.
In every field, scenario based interview questions are more tricky as they test your ability to think creatively and respond accordingly. So we suggest to the testers who are going to attend the interview they should prepare well for those selenium tricky interview questions. Or you can follow the ways:
Come prepared: if you are unsure about the technique, go through the pretextual structure we outlined in this article or brainstorm before conducting such interviews with your team members.
Express yourself: we all know how difficult it is to wrap something in just a few words. So there is no need to be short-tempered while discussing your concern or ideas to solve the issue. It shows that you are not scared of asking questions too.
Update: If you want to raise your skills even further with Selenium, we highly recommend the Selenium Tricky Interview Questions below to help you understand how to prepare yourself for the selenium interview.
Selenium Tricky Interview Questions PDF
- Tell me about the work you’ve been doing recently. What’s the most interesting bug that you’ve found, and why?
- What kind of challenges does testing present? Can you tell me about some specific software testing challenges and how you overcame them?
- Why did you choose software testing as a career, and what motivates you to stick with it?
- Have you encountered any challenges working with your colleagues? Tell me about a specific instance when you were in a difficult situation and how you dealt with it.
- How about situations where you have to make decisions… Have you ever made a bad decision? What contributed to you making that decision? How did you deal with the consequences?
- How have you added value to the organizations you’ve worked with? Can you give me a specific example from your last or current position?
- What process are you using for testing currently? Can you describe how you might improve it?
- What kind of tests have you been doing? What do you enjoy about them? How do you develop those tests?
- When you perform a test, what steps do you take? What’s your process?
- Have you ever written a test plan? What would you put in one?
- How do you know when it’s time to stop testing?
- What’s the role of risk in your testing? How do you analyze and measure it?
- Do you measure how effective (or not) your testing is? What metrics do you use?
- If I left you testing for two hours, what would you have to show me when I returned?
- Have you automated any of your tests? How so?
- What’s your favorite testing tool? Why? What would you do if some technical constraint meant you could not use it instead?
- How do you know when you (or your automation) have found a bug? What makes it a bug? Are some bugs more important than others? How do you report them?
- What do you do if the developers decide the bug is not a bug?
- Testing can be challenging. What keeps you motivated?
- How do you stay at the top of your game? What self-learning do you do?
- What have you been criticized for in the past? How did you respond to that criticism? What did you do about it?
- Describe the characteristics of your ideal boss and why.
Tricky Selenium Interview Questions
- Write code for the Action class
- Write code for positive and negative scenarios for Alerts
- Write code for handling multiple windows.
- Find odd number
- Disadvantages of Selenium
- Difference between get() and navigate().to()
- Write code to click on the Check box inside the Dynamic Table.
- Write code for taking Screenshots.
- Explains Maps in Java
- Explain framework (Questions based on your framework explanation)
- What is Pom.xml
- Which is the correct Xpath for this code (Lot of questions on Xpath)
- Xpath methods Ex: Starts-with & Contains
- The syntax for the CSS selector
- How to identify dynamic images
- From a given string, separate characters, integers, and special characters and stored in a separate variable and printed them
- Remove duplicates from ArrayList
- Print all the frame names
- How to read from XML or CSV file and store in hashmap
- Get the value of a cell in the Dynamic table
- What is the Burndown chart (Agile)
- Print these characters from a given string and change them to uppercase
- Explain Access specifiers
- Difference between Priority and Severity
- Example for High Priority and Low Severity and vice versa
- Difference between Test Strategy and Test Scenario
- What Software Metrics do you use in your project
- How to handle Dynamic Elements, since the webpage is designed in Angular Js
- Implicit and Explicit Waits
- Write code for Cross Browser Testing
- Explain Method Overloading and Method Overriding with Example
- What is Static Keyword
- Dependencies in Pom.xml
Selenium Tricky Interview Questions For Experienced
- Write code for fetching data from Excel
- Select this value in the dropdown and hover over this element and click
- Assert and Verify
- Check if a given string is Palindrome or not
- Remove duplicate characters from a string and print
- Which Code Repository are you using (Ex: GitHub)
- How will you estimate the time to automate a scenario?
- How to perform Right Click.
- In a Dynamic Table, if I give one cell value, it should give me the values of other cells in that row.
- Have you developed any Tools? If yes, explain
- Write code for handling Frames
- Read from a text file and store it in HashMap
- Print the occurrence of each character if it is present more than once in a given string.
- Write code for nested drop-down, and You have to check all the values in the dropdown, All permutations, and combinations.
- Advantages of Selenium
- How to check if a checkbox is displayed
- If the element is not present, how will you print the element not present in the message?
- What all exceptions have you faced
- What all difficulties have you faced in Selenium
- What all TestNG Annotations do you use in the project
- Where will you maintain the code?
- What all Collections do you use in your project
- How to run multiple test cases
- What are Primitive and Non-primitive Data Types?
- What are JDK, JRE, and JVM
- Settings.xml in Maven
- Eliminate the first and last string from the array and print
Selenium Scenario Based Interview Questions
We have another separate post where we have shared the various scenarios-based interview questions which you can expect in the interview or which was already asked in somany interview. you can get those questions by following the mentioned link.
- What is Encapsulation
- What is the use of build() and perform() in Actions
- How will you check the actual vs expected result
- Xpath Axes, Ex: Following
- Automate Menu and Sub Menu, click on a link in Sub Menu, navigate to the page, and click on an element.
- Syntax for Alerts
- How will you generate Reports?
- What is the execution time of your test cases?
- Print a Reverse Pyramid
- Go to frame, click on the upload button, and select the file in this directory.
- Difference between PUTS and POST in API
- Read data from Excel, give that data as input for login and password, and click on submit and validate the popup that says Login is successful.
- Read data from two text files and compare if they are the same or not
- Read data from an Excel file and compare the data to the web table and check whether it is the same or not
- Select multiple options from the dropdown
- Explain Defect Lifecycle
- How many people are working on your project, and what all teams are there
- What is your role in your project?
- How often Daily Triage Call will happen, and what will be discussed
- What all packages have you used in your project
- How will you check Broken Links?
Selenium Real Time Interview Questions
- Read from a text file and change that content
- Write test scenarios for Credit Cards.
- How to read the Properties file
- Which is the latest Java version and which one have you used, and what are the features of that version
- Check if the given two strings are an anagram
- What is the difference between Interface and Abstract Methods?
- Difference between BeforeSuite and BeforeMethod
- Difference between Default and Protected
- Write a program to divide without using division or modulus symbol
- String = ‘AaBbCcDD’, In that change a lowercase ‘a’ to uppercase
- Hierarchy of TestNg Annotations
- How many Sprints have you worked on, and how often will you get Sprints
- How Agile Methodology works
- Do Exceptions have priority?
- Can a try block have more than 1 catch block?
- Can a class be Public, Private, Protected, and Default?
- How will you compare the data from the database to the data on the webpage?
- Blackbox vs Whitebox Testing
- Explain Waterfall Methodology
- What is Traceability Matrix
- Explain STLC
- Explain SDLC
- What is a class
- What is an object
- What is a variable
- How to clone one list and store it in a new list
- How to run a group of test cases in TestNg
- How to include or exclude test cases in TestNg
- How to run the parallel test case in TestNg
Selenium Tricky Interview Questions And Answers
- What is Selenium Grid
- Can a Map have a Null value?
- What all different test annotations have you used in TestNg
- How to switch frames in Selenium
- Difference between this and super
- Difference between Constructor and Method
- Difference between String Buffer and String Builder
- Difference between List and Set
- How to run a test suite in different browsers
- What is static and final
- Difference between String and String Builder
- How to run failed test cases in TestNg
- Difference between Iterator and ListIterator
- How to set the proxy in Jenkins
- Explain Maven Life Cycle
- Explain POM
- What will be there in POM.xml
- Without using the Select statement, how to select dropdown
- Difference between Sanity and Smoke Testing
- Can the Main Method be overridden?
- What is Retrospective Meeting?
- What are all methods String has?
Selenium Tricky Interview Questions For Experienced
- What are XPath and its types?
- What are cross-browser testing and parallel testing?
- Challenges faced during selenium testing?
- What is the Actions class?
- How to handle drop-down in selenium?
- How to handle multiple browsers pop up?
- How to handle multiple browser tabs in selenium?
- How to perform upload files using selenium?
- How to perform download files using selenium?
- How to get all values of dropdown in selenium?
- How to perform (control + a) through selenium?
- How to shift between tabs of the same browser using selenium?
- What is a Robot class?
- What is AutoIT?
- What is the difference between get() and navigate()?
- What is the difference between findElement() and findElements()?
- What is the difference between quit() and close()?
Selenium Practical Interview Questions
- What are different locators used?
- What is the difference between XPath and CSS selectors?
- Different approaches to clicking the submit button?
- What is javascriptExecutor, and when is it used?
- Handling WebTable(static and dynamic) in selenium
- What is POM? What advantages and disadvantages?
- What is a maven? List its phases or life cycle. Command to run our project through the maven?
- Explain your project folder structure. Or Explain your framework?
- What is TestNG?
- How to create and delete cookies?
- What do getwindowhandles() and getwindowhandle() return? Or its differences?
- Is it possible to use only perform() without build()? 30.What is perform() and build()?
- How to scroll the browser window?
- Preceding sibling and following sibling of custom XPath?
- What is the test management tool used in your project?
- What is the build automation tool used in your project?
- How will you handle the SSL certification?
- What is Desired Capabilities?
- How do you verify whether ‘Bangalore’ is present in the dropdown box?
- How to verify ‘Bangalore’ is present in 4×4 web table? And print the column and row number of it is present?
Selenium Tricky Interview Questions For 10 Years Experience
- How to fetch the data from a particular row and column of excel?
- List all maven plugins like surefire plugin etc
- What is Jenkins? And explain its use?
- Explain the tags present in the testng.xml file
- What is TDD?
- What is BDD? Explain the cucumber framework. What are gherkins?
- What is Listener?
- What is DataProvider?
- What is parameterization?
- What is PageFactory?
- What is Apache POI API? Or how to read data from excel?
- What are explicit and implicit waits?
- What are the challenges faced in automation testing?
- Write code for handling multiple browsers and switch to new windows.
- What is webdriver? And why webdriver is used?
- List some selenium exceptions.
- What is StaleElementReferenceException?When this occurs? And how to overcome such exceptions?
- How do you group the test cases? And why?
- How to include or exclude test cases?
- What is NullPointerException?When it occurs?
Selenium Tough Interview Questions
- What is a selenium grid?
- Should have knowledge of all TestNG annotations.
- How do you control the execution of your test cases/test classes?
- Git and its commands
- Maven commands to execute, debug, compile
- What is the current version of maven used?
- How to identify broken links? How have you done in your project? Write code or tell approach.
- Write a code to fetch the value ‘Test’ from the excel sheet, which might be present in any cell in excel. Or check whether the value ‘Test’ is present in excel.
- How to pass values to the textbox other than using sendKeys()?
- How to click the login button other than using click(), submit(), and JavascriptExecutor?
- What is subversion?
Selenium Tricky Interview Questions
Selenium Tricky Interview Questions: Here are the best Selenium Tricky Interview Questions for Manual Testing.
- What are test design techniques? Explain BVA and ECP with some examples.
- Explain STLC
- Explain the Bug Life Cycle
- What is the difference between a bug and a defect?
- What are severity and priority?
- Explain SDLC
- What are the differences between smoke and sanity testing?
Selenium Real Time Interview Questions For 3 Years Experience
Question asked in an interview in different organizations for 3 years of exp in last month.
- Explain your current automation framework.
- Current roles and responsibilities.
- TestNg sequence.
- Why is no main method required in TestNG execution?
- How to connect to the database.
- Simple SQL queries on a group by and conditions.
- SQL query to find the second highest salary without using a subquery.
- SQL query to sort the column in ascending.
- SQL query to find duplicate using self-join.
- What is the difference between HTTP and HTTPS?
- Java program on finding duplicate characters.
- Java program on bubble sort.
- Excel utility to read excel using hashmap of hashmap.
- What is dependency injection in cucumber and TestNG, and how can we achieve it?
- Program to remove white space and replace it with a comma.
- Java program for taking input in ArrayList and returning it in an array.
- What is thrust testing?
- Write a creative test case for lift.
- Write cucumber feature file using datatable.
- What are the latest enhancements in selenium 4
- How to pass parameters in Jenkins.
- What is java generics, and where have you used it in our current automation framework?
- Wap to take pass a get request using rest assured and from response verify if data present in the database using SQL.
Scenario Based Selenium Interview Questions
- Difference between hashmap and linked hashmap
- Different error codes.
- What is the global variable in postman?
- Environment variable in postman.
- Difference between put and patch.
- What is the 409 response code?
- How to pass JSON file to a payload
- Pass payload using a hashmap.
- How to pass cookies in rest assured.
- What is OUTH, and why does the company use it nowadays?
- What is agile? Explain its different components. What is the burndown chart?
- Is velocity in agile?
- How to resolve conflict in Git.
- What is a pull request?
- How to reverse your code in git
- Jenkins Cron’s job is to set at every hour how.
- Apart from Jenkins, what ci/cd tool can you use?
- What is an effective pom in maven?
- How many different build phases are available in maven?
- How to pass TestNG in maven file.
- How to create a profile in maven and execute the same.
- How the optimize your current framework.
- What have the expected conditions in explicit wait? Is it a class or interface?
- How to take ss of failed TC.
- How to rerun failed TC 3 times.
- What is the difference between a drop and truncate in SQL?
- What is alert in selenium?
- Have you used JavaScript executor in your framework yes where?
- Which framework is easy to handle data-driven, keyword-driven, or hybrid?
- Different design patterns can use with selenium.
- Can we integrate Sprint boot with selenium?
- What is Jira? how does your project maintain test case and defect
- What are the deliverables you deliver after the project is done?
- How do you see automation growth in the next five years?
Tricky Selenium Interview Questions
What Selenium Tools and Testing framework are you using in your Current Project?
Ans: We are using,
- Selenium WebDriver for Creating Test Cases.
- Java Programming for Enhancing Test cases.
- TestNG Testing Framework for Grouping Test cases, executing Test batches, and generating Test reports. Also used,
- Firebug and Firepath for inspecting elements.
- IE Browser driver and Chrome browser driver for Cross Browser testing.
What is your Project Operating environment?
Ans: Microsoft Windows 8.1
What is your project domain and Application Environment?
Ans: Our project is Banking Application, Our AUT (Application Under Test) was developed using Java Technology, and the Database is Oracle.
What are the major challenges in Functional Test Automation?
Ans:
- Object Identification.
- Debugging Issues. Etc…
What are the difficulties that you faced in Object identification?
Ans: Some Elements (Objects) are not recognized properly using Selenium WebDriver Element locators.
How do you conduct Data-driven Testing in your project?
Ans: We conducted Data-driven Testing using an external Excel file as a Resource; we added some third-party excel jar files to Java Project in Eclipse.
How do you conduct Batch Testing in your project?
Ans: We conducted Batch Testing using TestNG Testing Framework.
How do you conduct Cross-browser testing in your project?
Ans: Using Mozilla Firefox, IE, and Google Chrome browsers(Downloaded IE and Google Chrome Browser drivers). We executed Test cases.
How do you handle duplicate Elements in your project?
Ans: Using the index property of Elements, we handled duplicate objects.
How many Test cases did you write for your Project/Module?
Ans: I prepared around 120 Test cases in my Module.
How many defects do you detect, and give one example?
Ans: I detected nearly 20 Defects, of which five are severe.
How do you select Test cases for Regression Testing?
Ans: We selected Test cases for Regression Testing based on Defect affected Test cases and defect-dependent Test cases.
How do you organize your Test Automation resources?
Did you use any build management tools in your project?
Ans: We used the Maven build management tool in our project.
How you handled errors in your Test scripts?
Ans: We handled errors in our Test Scripts using Java Error handling features.
Did you create any reusable components?
Ans: Yes, We created some reusable components in our project for Login Functionality, Registration Functionality, etc.
Did you find any Test Scenarios not to be automated in your project using Selenium?
Ans: Yes, We find some Test Scenarios in our Current project, Functionalities that require more user interaction, and Functionalities that require Dynamic test data submission.
How to execute multiple Java programs at a time?
Ans: We execute multiple Java programs using an XML file in the TestNG framework.
How to conduct parallel Test execution?
Ans: Usually, We conduct Parallel Test Execution using Selenium Grid, but no parallel test execution in my Current project.
What Defect management / Test management tool you used in your project?
Ans: We use the Jira Test Management tool in our project with Selenium.
How you communicated with the development team to resolve the issues?
Ans: We communicate Development team via Our Test Manager.
Did you involve in the Selenium Test environment Setup?
Ans: Yes, I was involved in Selenium Environment Setup in my Current Project. Per my project, we selected Java, Selenium WebDriver and TestNG Framework, and Maven.
- We Downloaded Eclipse IDE and Extracted it.
- Downloaded Java Software and Installed.
- Environment Variable path setup.
- Downloaded Selenium WebDriver Java language bindings(jar files) and added them to Java Project in Eclipse.
- Downloaded and Installed TestNG Framework from Eclipse IDE.
- Installed Maven build management tool.
hi this is kiran ,
interview questions of very helpful for interview
but answers are in short, please can you elaborate to 4 to 5 lines
then we could get clarity on answers
how you integrate grid in your project?
how to do parallel test cases?
asked about framework?
about sorting 0’s oneside and 1’s one side write a programme for this?
webdriver driver = new firefoxdriver() explain it?
why the above one not firefoxdriver driver = newfirefoxdriver() this ?
tell me about oops concept?
about over loading and how to overload?
overriding?
about encapsulation?
write a code for dropdown without using select keyword?
login page code using JS?
Difference b/n String And StringBuffer?
About abstraction?
given an array and told to write a palindrome?
reverse a string?
What are the exceptions you faced?
how you know whether element is present or not , excluding isdisplayed(), is enabled()?
without index and value how to select dropdown value?
About waits?
Wht is meant by fluent wait and where you used?
what is meant by collections?
these questions asked in Paytm , amadeous, Cgi for 3+ candidates, hope these will help you
Thank you it helped a lot….
Thanks for Sharing!!!. Its helpful.
Navya Rao
Thanks for sharing info. Please keep on update.
Can you please prpovide the Page object model concept.
And also could you please provide one of the selenium project for undrstanding.