TCS Selenium Interview Questions

TCS Overview

  • www.tcs.com
  • Mumbai, Maharashtra
  • 10,001+ employees
  • 1968
  • Public Company
  • IT Services
  • Unknown
  • Unknown

TCS Selenium Interview Questions With Java: This article provides TCS interview preparation covering various roles like automation QA engineers, Java developers, testers, and freshers. Popular topics include Selenium automation frameworks with Java Python coding questions, technical screening, HR rounds, and real-world examples.

Experienced candidates with 3+ years can expect Selenium Java integration, advanced Selenium grid, interface testing scenarios, DevOps CI/CD pipeline creation, and testing best practices. We also cover manual to automation transition with questions focused on frameworks like TestNG, JUnit, Maven, and log4j demonstrating QA deliverables.

Post On:TCS Interview Questions
Post Type:Interview Questions
Published On:www.softwaretestingo.com
Applicable For:Freshers & Experience

Freshers can prepare for aptitude, programming logic building, OOPS basics, SQL queries, Linux commands, web technologies, and communication flow. The goal is to equip TCS interview hopefuls with frequently asked Selenium and broader technology questions aligned to their experience level and position.

TCS Selenium Interview Questions

Company Location: Bangalore
Updated on: 03.07.2024

  • Asked basic API questions.
  • Difference between Abstraction and Interface.
  • Explain framework.
  • Java oops
  • Example for oops concepts.
  • BDD questions
  • Agile questions
  • How will you automate a scenario based on some flow?
  • What libraries, files and dependencies you will add to create the script?
  • TestNG related questions.

Company Name: TCS
Position: Sr. Automation Tester
Company Location: Bangalore
Experience: 7 Yrs
Shared By: Rahul Dubey
No Of Rounds: 1
Updated on: 30.10.2021

It was a telephone interview. The experience was good, but somehow, the interviewer thought I might be cheating as I was a little slow to answer; I completed the interview positively.

Questions

  • Current Project and what is your role in it

TestNG

  • Annotations
  • How to execute parallel test
  • Can we execute the parallel test for different test data in the Data Provider?
  • Difference between Data Provider and Parameters
  • How can you run your Smoke or Regression test cases in TestNG?

Selenium

  • Different Exceptions
  • What is StaleElementReferenceException
  • How to handle StaleElementReferenceException
  • The difference between findElement() and findElements
  • Exceptions thrown by findElement() and findElements()
  • Different Locators in Selenium
  • How will you locate an element if no unique locator (not even Xpath) exists?
  • In PageFactory, how do you locate an element?
  • Waits
  • Polling using webDriverWaits

Cucumber

  • Same gherkin code in 2 feature files. Is it possible?
  • Is Gherkin case sensitive?
  • How to pass parameters in Cucumber
  • How to pass

Java

  • Abstract Class and Interface
  • Maps

TCS Digital Interview Experience: Here is the list of TCS automation testing interview questions, which asked for 3-year experience interview questions.

Interview Date: 18 Sept 2022

  • Tell me about yourself.
  • What is the difference between regression and sanity
  • What is the defect cycle
  • What is the traceability matrix
  • How many tests case you can do right in one day
  • How can you define regression testing and when it’s used
  • What is the identifier
  • Difference between relative XPath and absolute XPath
  • Which framework are you using?
  • How to screenshot and write code for it
  • What are the agile meeting
  • Difference between agile and waterfall
  • Defect Life Cycle
  • Benefits of using TestNG framework.
  • Explain POM.XML
  • Agile ceremony
  • Swap 2 nos without using the third variable.
  • Difference between list and set.
  • Oops, concepts.
  • What is the difference between a list and a set?
  • In a webpage, how will you ensure that the page has been loaded completely?
  • What is a constructor, and when will you use this and super in a constructor?
  • What is the difference between private and protected?
  • How Will you achieve dynamic polymorphism?
  • What is Inheritance and encapsulation?
  • Can you override static methods?
  • Can the main method be Overloaded?
  • What is Singleton?
  • If you want to call a constructor from the parent class, what will you do?
  • How will you handle alerts in Selenium?
  • How will you handle a file upload window using Selenium?
  • How will you handle dynamic elements using X-path?

Interview Date: 05th July 2022

For these Tata Consultancy Services (TCS) interview questions, We Thank Snehal Gaikwad for coming forward and sharing these Testing interview questions with us. We hope this also motivates others to share their interview experience and questions.

Still, we need your Love ❤️ and support 🤝 to build a better platform for our fellow Testing Community. We want to create an incredible platform where QAs can access real-time testing interview questions in a single place.

  • Introduce Yourself.
  • Which framework did you use?
  • Explain Framework.
  • What does Encapsulation mean?
  • If Dev does not accept bugs, then what will you do?
  • Explain cross-browser testing.
  • When do you do test automation?
  • What is TestNG?
  • Inner Join? Syntax
  • Dir to Dir more syntax?
  • Which exceptions did you see in these three years of experience?
  • What is the difference between Final, Finally & Finalize?
  • What is the difference between Post and Put in API?
  • How can you handle dynamic webelement?
  • JIRA uses?
  • What is the difference between implicit and explicit? Which do you frequently use?
  • What is the feedback you get during your sprint retrospective meeting?
  • I am done with you. Do you have any questions?
TCS Selenium Interview Questions 1

For these Tata Consultancy Services (TCS) interview questions, We Thank Snehal Gaikwad for coming forward and sharing these Testing interview questions with us. We hope this also motivates others to share their interview experience and questions.

Still, we need your Love ❤️ and support 🤝 to build a better platform for our fellow Testing Community. We want to create an incredible platform where QAs can access real-time testing interview questions in a single place.

Interview Date: 14/04/2022
Position: Automation Test Engineer

  • What are sanity, smoke, and regression testing, and what is the difference between them?
  • What is a path in Python?
  • Explain agile methodologies and story point allocation.
  • What is the scope of Python?
  • Explain different data types in Python.
  • How can we automate all test cases, and when can we do so?
  • What is the difference between test planning and test strategy?
  • What are bug-tracking tools and log storage?
  • Explain your Project and overall experience.
  • Explain the Automation Testing Life cycle
  • Explain Regression Testing
  • Explain Defect leakage and defect release
  • What is Fault means in the testing
  • What are the annotations in TestNG
  • What is TestNG, and explain its advantage and use in Automation
  • How to handle switch frames in selenium
  • How to handle Windows popups, the command for it
  • How to refresh a page in Selenium and its command
  • What are Annotations in Jenkins
  • What is POM
  • What is the use of Maven?
  • How do we use cucumber in selenium
  • Which Framework have you used for your project?
  • Explain Page Factory.
  • Explain Abstract & Interface.
  • What is the difference between implicit, explicit, and Fluent wait?
  • What is the code for screenshots using selenium?

Company Location: Chennai, India
Attended on: 13.11.2021

  • Tell me about yourself
  • Explain Framework
  • What is Inheritance?
  • What is API Testing, and explain in detail?
  • What is Jasmine Framework?
  • What is Python?
  • Explain your framework
  • Explain how you have implemented oops concepts in your framework
  • What is a latent defect
  • How to find out broken links on a web page
  • Name of 8 locators
  • Which locator is most used and why
  • The difference between implicit and explicit wait
  • Method to scroll down to the bottom of a web page
  • If an element is not visible on the screen, how to click on it
  • Explain different response codes of API
  • How to handle a window pop-up
  • How to drag and drop files on a web page
  • How to retrieve an image from an nth window
  • Name methods of Action class
  • Difference between POm and page factory
  • How to select the value from the drop-down
  • Explain the list and hashmap

Company Location: Bangalore, India
Attended on: 29.09.2021

Technical Round -1

  • What are the primary key and unique keys?
  • How many joins are there any differences?
  • What is the difference between a Join and a Union?
  • Select the top 3 max salary employees by depts.
  • What is the difference between where, having, and using it?
  • Different types of Date functions?
  • What are the grouping functions?
  • Which function is used to get the current date?
  • What is a subquery?
  • What is indexing?
  • Basics of selenium in deep
  • Write the XPath
  • Alert, how to handle and get the text
  • Tooltip text
  • Select class – drop-down
  • Dropdown without using the select class
  • One or two coding questions
  • Java8
  • Interface and abstract class diff
  • Inheritance
  • Super and this
  • Overriding and overloading and how it implemented in your project
  • How do you check if any element is present?
  • Fluent wait.
  • How to check if an alert is present
  • How to get the value from a properties file
  • Basic SQL queries like how to use join, max, avg

Technical Round -2

  • What is a class?
  • What is the difference between heap and stack?
  • What is the difference between an instance variable and a local variable?
  • What is a Constructor? Types of Constructors?
  • What is the difference between Break and Continue?
  • What command is used in Java to exit the system from the current execution?
  • Addition features in Java 8?
  • What is the difference between for and for each loop in Java and its use?
  • Can we have multiple public classes within a class?
  • What is inheritance? Types of inheritance? Are multiple inheritances allowed in Java? If not, why?
  • What is polymorphism? How can we achieve it?
  • What is the difference between method overloading and method overriding?
  • Can we achieve method overloading when two methods only differ in return type?
  • Method overloading and overriding examples in the Selenium project?
  • What is encapsulation?
  • What are IS-A and HAS-A relations in Java? With examples?
  • What is the final and super keyword? What difference between them?
  • Explain runtime polymorphism and compile-time with examples.
  • Can the final/Static method be overloaded?
  • Can final/Static methods be overridden?
  • Can we overload the Main method?
  • Can we execute a class without a Main method?
  • What is a Package?
  • What is an Abstract Class? Write an example code.
  • What is an Interface? What is the difference between the Abstract class?
  • Can we use private and protected access modified inside an Interface?
  • Can multiple inheritances support an Interface?
  • What are some examples of abstract and interface used in the selenium project?
  • What is an exception, and what is its base class?
  • What is Final, Finally, Finalize?
  • What is done in the finally block?
  • What is garbage collection in Java? How is it done?
  • What is the difference between Throws and Throw?
  • Gives some examples of Java and Selenium.
  • What is Java Reflection, Singleton?
  • What is threading? How does multithreading work? How do you initiate a thread in Java? What do you mean by thread-safe?
  • What is the difference between collection and collections?
  • The collection is what type?
  • What is the difference between Array and ArrayList?
  • What is the difference between Set and HashSet?
  • What is the difference between HashMap and hashtable?
  • What is the difference between ArrayList and LinkList?
  • How do you use Map collection for your project?
  • Can we have a duplicate key value in HasMap?
  • How to fetch values from a hashmap?

Next is the HR discussion.


Company Name: TCS
Company Location: Chennai, India
Attended on: 30.07.2021

  • Tell me about yourself.
  • What is the difference between SDLC & STLC?
  • How to get a count of all the links on a webpage and click on them?
  • How do you validate a URL from the parent window? Clicked on it should navigate to the child window. Also, how do you validate the extensions after ‘/,’ e.g., .www.google.com/users/login?
  • How do you handle Rejected defects with the dev team?
  • What are all the limitations of Selenium?
  • How did you capture screenshots in Selenium?
  • What are listeners?
  • Explain HashMap.
  • Types of waits in selenium
  • How do you run the same test case multiple times using TestNG?
  • What are checked and unchecked exceptions
  • What are the different types of string methods?
  • What are collections? What collections have you used?
  • Interface and abstract class
  • Overload and overriding
  • Few Java programs for Logic
    1. How to reverse a string, eg. “ I am from Mumbai” output needs to be “Mumbai from am I.”
    2. 1,2,3,1,2 how to print no. Appearing twice
  • Cucumber: what are hooks in cucumber?
  • How to write cucumber feature
  • Explain your framework
  • How you pass data
  • Agile ceremonies-related questions
  • Selenium web driver link text-related questions.
TCS Selenium Interview Questions 2

Company Name: TCS
Company Location: Bangalore, India
Updated on: 13.05.2021

  • Tell me about yourself.
  • Can we overload the main method? If yes, how?
  • How to get a count of all the links on a webpage and click on them?
  • How do you find that if it is linked using XPath?
  • How do you handle windows?
  • How do you handle tables using XPath?
  • How do you handle dynamic elements on a webpage? For example, the employee list is being extended, and we want to retrieve the last employee data.
  • What changes must be made to the .java class for the parallel execution of test cases using TestNG?
  • Defect life cycle.
  • Diff between SDLC and STLC.
  • Components in defect report.
  • How do you handle QA conflict?
  • When to start Automation?
  • How do you choose test cases for Automation?
  • How do you take screenshots in selenium for failed test cases? Name the class and method.
  • Please explain to me the logic of finding the prime number.
  • Describe how to handle the below items using selenium
    -iframe
    -windows
    -table
    -Alerts
  • What is a javascript executor?
  • What are static variables?
  • What is the difference between overloading and overriding
  • How can you do parallel test execution using Selenium?
  • What are actions
  • Types of waits in selenium
  • How to take a screenshot of failed test scripts in TestNG

Company Name: TCS
Company Location: Chennai, India
Updated on: 15.03.2021

  • Tell me about yourself.
  • Using Selenium, can we automate JavaScript?
  • WebDrvier driver=new Firefoxdriver() Explain this?
  • Oops concept basics
  • How to select a drop-down box without using “select”?
  • Architecture of framework
  • Maven questions
  • How do you give an MVN path to Jenkins
  • Is TestNG a framework or test package ( I said it’s a framework for using unit testing and used to generate reports )? Again, she asked why testNG should be used.
  • Given a scenario about booking 10tkts in Air India, write a code for it.
  • What is meant by class and objects? Give one example of it and explain the components of the framework briefly.
  • Which frame are you using ( my self I told KDF), but she asks about POM
  • Why do we use Git?
  • Why should we use Jenkins?
  • Are you asking about .war files for Tomcat?
  • How to run a scenario? Explain briefly where you write code and where you generate reports step by step; tell me in this paper.
  • Int a=22555; write a program to count the number of digits in a given number. Don’t convert to a string.
  • In the web table, every cell has “*”, but one has the Letter “A”. Write XPath for “*” beside the letter “A” cell.
  • Prepare a Test case/Scenario for covering the Calculator.
  • How do you test a web page application?
  • Write the steps to automate if a new page is added to your website.
  • How do you add objects to a repository?
  • What basic error would you get when an XML is incorrect?
  • Tell me some examples of security testing
  • Write the scenarios for testing a coffee vending machine.
  • Difference between QA and testing
  • What kind of QA process do you follow?
  • What are the inputs required to raise a defect?
  • Checklist for testing a website
  • Who is going to assign the severity and priority?

  • Tell me about yourself.
  • Write the syntax of implicitly wait and Explicitlywait
  • How to do parallel testing and cross-browser testing
  • Write the code for taking screenshots
  • How to read data from an Excel sheet
  • Explain your Framework
  • What is Autoit
  • How to handle Authentication popups
  • What is webdriver
  • Explain Jenkins
  • What are the dependencies you added to your framework?
  • Explain about collections
  • SQL commands
  • What is the difference between inheritance and abstraction?
  • Where did you use abstraction in your current project? Give me one example.
  • Explain cucumber and cucumber options
  • What is the Java tree?
  • Which framework you worked
  • How many percentages of automation are covered in your project
  • What are annotations
  • How do you test API? experience in post-method
  • What is an agile process?
  • What is scrum
  • Which area do you need to improve on selenium?
  • How will you find out broken links on the webpage?
  • Difference Between implicit and explicit
  • Explain your TestNG framework
  • Explain Oops concepts
  • explain in detail the Xpaths concepts
  • Relative XPath absolute XPath
  • GitHub & Jenkins
  • They have asked me for logic
  • The last 10min asked manual questions

We Hope these TCS Selenium Interview Questions Will Help you with your upcoming interview. Please comment below if you have any feedback regarding the TCS Selenium Interview Questions.

Avatar for Softwaretestingo Editorial Board

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.

8 thoughts on “TCS Selenium Interview Questions”

  1. Regarding the scenario which needs to book 10 tickets in Airline, is that require java code or selenium code at the time interview

    Reply
  2. interview for automation test engineer: on 14/04/2022

    questions:

    sanity, smoke and regression testing and difference between them
    path in python
    agile methodologies and story point allocation
    scope in python
    data types in python
    how can we automate among all testcases and when can we
    test planning and test strategy
    bug tracking tools and logs storage

    Reply

Leave a Comment