i
HCLTech
Filter interviews by
I appeared for an interview in Mar 2025, where I was asked the following questions.
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
Frames in Selenium are handled using switchTo() method to navigate between frames within a webpage.
Use driver.switchTo().frame() method to switch to a frame by index, name, or WebElement
To switch back to the default content, use driver.switchTo().defaultContent()
Nested frames can be handled by switching to parent frame first before switching to child frame
Example: driver.switchTo().frame(0); // Switch to frame by index
Handling windows in automation testing involves identifying and interacting with different types of windows that appear during test execution.
Use window handles to switch between different windows
Identify windows using unique attributes like title or handle
Interact with windows by sending keys or clicking on elements within the window
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Java program to sort an array in ascending order and find fourth highest number in an array without using any built in methods
HCLTech interview questions for designations
I applied via Naukri.com and was interviewed in Mar 2024. There were 2 interview rounds.
Program to find 2nd highest number in array without sorting.
Iterate through array to find highest and second highest numbers
Initialize variables to store highest and second highest numbers
Compare each element with highest and second highest numbers
Program to add values into a hashmap in Java.
Create a new HashMap object.
Use the put() method to add key-value pairs into the hashmap.
Keys must be unique, values can be duplicated.
Example: HashMap<String, Integer> map = new HashMap<>(); map.put("A", 1);
Main concepts of OOPS in Java include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables with public getter and setter methods.
Polymorphism: Ability of a method to do different things ba...
Different HTTP codes used in Rest Assured
200 - OK: Request was successful
201 - Created: Request was successful and a new resource was created
400 - Bad Request: Request was invalid
401 - Unauthorized: Request requires user authentication
404 - Not Found: Requested resource was not found
500 - Internal Server Error: Server encountered an unexpected condition
Code using Rest Assured for checking status code
Import Rest Assured library
Use given() method to specify the base URI
Use when() method to specify the HTTP method and endpoint
Use then() method to validate the status code
Get interview-ready with Top HCLTech Interview Questions
In Selenium, OOPs concepts like inheritance, polymorphism, encapsulation, and abstraction can be implemented using classes and objects.
Selenium supports object-oriented programming principles like inheritance, where one class can inherit properties and methods from another class.
Polymorphism can be achieved in Selenium by using method overloading or overriding.
Encapsulation is implemented in Selenium by hiding the inte...
In Selenium, OOPs concept refers to using Object-Oriented Programming principles like inheritance, encapsulation, polymorphism, and abstraction.
Selenium supports OOPs concepts like inheritance, where one class can inherit properties and methods from another class.
Encapsulation is achieved in Selenium by using access modifiers to restrict access to certain methods and variables.
Polymorphism allows Selenium to perform di...
I applied via Naukri.com and was interviewed in Jan 2021. There were 4 interview rounds.
What people are saying about HCLTech
I applied via Company Website and was interviewed in Nov 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Sep 2021. There were 2 interview rounds.
Types of test steps in software testing
Unit testing - testing individual units or components of the software
Integration testing - testing how different units or components work together
System testing - testing the entire system as a whole
Acceptance testing - testing if the software meets the requirements and is ready for release
Regression testing - testing to ensure that changes or updates to the software did not intro...
based on 8 interviews
1 Interview rounds
based on 41 reviews
Rating in categories
Software Engineer
23.5k
salaries
| ₹1.9 L/yr - ₹8 L/yr |
Technical Lead
21.6k
salaries
| ₹7 L/yr - ₹28 L/yr |
Senior Software Engineer
16.1k
salaries
| ₹4.5 L/yr - ₹17 L/yr |
Lead Engineer
15.8k
salaries
| ₹4.1 L/yr - ₹14 L/yr |
Analyst
14.8k
salaries
| ₹0.8 L/yr - ₹6.5 L/yr |
TCS
Wipro
Accenture
Cognizant