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
Get Updates:Software Testingo Telegram Group

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 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 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

Tips: This is the screening round, so prepare for the basics.

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?

Source: Telegram Group

TCS Interview Questions For Freshers

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 to make such an incredible platform where a QA can get the 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?

Source: Telegram Group

TCS Selenium Interview Questions 1

TCS Quality Engineer Interview Questions

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 to make such an incredible platform where a QA can get the 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?
  • 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?

TCS Company Chennai Interview Questions

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

TCS Company Bangalore Interview Questions

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 and 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
  • Tool tip text
  • Select class – drop-down
  • Dropdown without select class
  • One or two coding question
  • Java8
  • Interface and abstract class diff
  • Inheritance
  • Super and this
  • Overriding and overloading and how it implemented in your project
  • How to check if any element is present.
  • Fluent wait.
  • How to check if alert is present
  • How to get the value from 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?
  • 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 achieve? How to 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.

TCS Chennai Interview Questions

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

Thanks To Gokulsarathy P For sharing these interview Questions with us.

  • 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 [ Bangalore, India ]

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 getting extended, and we want to retrieve the last employee data.
  • What changes must be made to the .java class on 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

TCS Selenium Interview Questions

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 to use testNG.
  • Given a scenario about booking 10tkts in Air India, write a code for it.
  • What is meant by class and objects? Give one example for 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?

TCS Selenium Interview Questions

  • 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 details the Xpaths concepts
  • Relative XPath absolute XPath
  • GitHub & Jenkins
  • They have asked me logics
  • And last 10min asked about manual questions

We Hope these TCS Selenium Interview Questions Will Help you with your upcoming interview. You can comment below if you want to share any feedback regarding the TCS Selenium Interview Questions.

About TCS Company For Interview

Tata Consultancy Services Limited is an Indian multinational information technology service, consulting and business solutions company headquartered in Mumbai, Maharashtra. It is a subsidiary of the Tata Group and operates in 46 countries.

We function as a full stakeholder in business, offering a consulting-led approach with an integrated portfolio of technology-led solutions encompassing the entire Enterprise value chain. Our Customer-centric Engagement Model defines how we engage with you, offering specialized services and solutions that meet the distinct needs of your business.

We build bespoke teams around your domain and technology requirements drawn from our talent pool of over 387,200 global professionals, including 34.7% women from 130 nationalities. Our domain expertise has been built upon decades of experience working across industries, and this knowledge underpins our suite of solutions.

FAQs

What Do You Know About TCS Interview Questions?

TCS interview questions cover a broad spectrum, focusing on technical expertise, problem-solving skills, and knowledge relevant to the role. They often include inquiries about programming languages, problem-solving scenarios, and familiarity with TCS as a company.

What Questions Are Asked in TCS Interview?

TCS interview questions vary based on the role but commonly include technical queries related to programming languages, problem-solving scenarios, and questions assessing your understanding of TCS as a company. Prepare for both technical and behavioural questions.

How Long Is the TCS Interview Process for Experienced?

The duration of the TCS interview process for experienced candidates can vary. Generally, it involves multiple rounds, including technical interviews, HR discussions, and sometimes managerial rounds. The entire process may take several weeks.

Why TCS Interview Questions?

TCS interview questions aim to assess candidates’ technical proficiency, problem-solving abilities, and alignment with TCS’s values. Answering these questions demonstrates your suitability for the role and understanding of the company.

Why Did You Choose TCS? Interview Questions

“Why TCS?” interview questions aim to understand your motivation for choosing TCS as an employer. Be prepared to articulate how TCS aligns with your career goals, values, and the specific aspects that attracted you to the company.

Is TCS Interview Tough?

The difficulty of the TCS interview varies from candidate to candidate. Preparation is key, focusing on technical skills, problem-solving abilities, and knowledge about TCS. Practice common interview questions to enhance your confidence and performance.

Why Do You Want to Join TCS?

Joining TCS offers an opportunity to work with a globally renowned IT services company. TCS is known for its diverse projects, cutting-edge technologies, and commitment to employee growth. Joining TCS allows me to contribute to innovative solutions, work on challenging projects, and be part of a dynamic and collaborative work culture.

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