i
Infosys
Work with us
Filter interviews by
Frames are used to divide a web page into multiple sections. They can be handled using various methods.
Use switchTo() method to switch to the frame
Use defaultContent() method to switch back to the main content
Use frame() method to locate the frame by index, name, or WebElement
Use parentFrame() method to switch to the parent frame
Use getWindowHandle() method to get the handle of the current window
To handle drop-down, identify the element, select the option, and verify the selection.
Identify the drop-down element using locators like ID, class, or XPath.
Use Selenium's Select class to select the desired option.
Verify the selection using assertions or by getting the selected option's text.
Handle dynamic drop-downs using wait statements or JavaScriptExecutor.
Test for edge cases like empty options or duplicate v...
The getWindowHandles command retrieves all open window handles for switching between them in Selenium.
Use driver.getWindowHandles() to get a set of all window handles.
Convert the set to a list for easier access: List<String> windowHandles = new ArrayList<>(driver.getWindowHandles());
Switch to a specific window using driver.switchTo().window(windowHandles.get(index));
Close a window using driver.close() ...
My automation framework is designed for efficient testing, scalability, and maintainability using modern tools and best practices.
Utilizes Selenium WebDriver for browser automation, enabling cross-browser testing.
Incorporates TestNG for test management, allowing parallel execution and detailed reporting.
Employs Page Object Model (POM) to enhance code reusability and maintainability.
Integrates with CI/CD tools like...
OOP is a programming paradigm based on objects, encapsulating data and behavior for better code organization and reuse.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class based on an existing class, inheriting its properties (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present the same int...
Basic SQL queries are essential for retrieving and manipulating data in relational databases.
SELECT statement: Used to select data from a database. Example: SELECT * FROM users;
WHERE clause: Filters records based on specified conditions. Example: SELECT * FROM users WHERE age > 30;
JOIN operations: Combines rows from two or more tables based on a related column. Example: SELECT orders.id, users.name FROM orders ...
String is a sequence of characters in Java.
Strings are immutable in Java.
String class provides various methods for manipulating strings.
Strings can be concatenated using the '+' operator.
Strings can be compared using the 'equals()' method.
Strings can be converted to character arrays using the 'toCharArray()' method.
Focus on basics and check your oops concept
My automation framework is designed for efficient testing, scalability, and maintainability using modern tools and best practices.
Utilizes Selenium WebDriver for browser automation, enabling cross-browser testing.
Incorporates TestNG for test management, allowing parallel execution and detailed reporting.
Employs Page Object Model (POM) to enhance code reusability and maintainability.
Integrates with CI/CD tools like Jenk...
To handle drop-down, identify the element, select the option, and verify the selection.
Identify the drop-down element using locators like ID, class, or XPath.
Use Selenium's Select class to select the desired option.
Verify the selection using assertions or by getting the selected option's text.
Handle dynamic drop-downs using wait statements or JavaScriptExecutor.
Test for edge cases like empty options or duplicate values...
Frames are used to divide a web page into multiple sections. They can be handled using various methods.
Use switchTo() method to switch to the frame
Use defaultContent() method to switch back to the main content
Use frame() method to locate the frame by index, name, or WebElement
Use parentFrame() method to switch to the parent frame
Use getWindowHandle() method to get the handle of the current window
OOP is a programming paradigm based on objects, encapsulating data and behavior for better code organization and reuse.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class based on an existing class, inheriting its properties (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present the same interfac...
Basic SQL queries are essential for retrieving and manipulating data in relational databases.
SELECT statement: Used to select data from a database. Example: SELECT * FROM users;
WHERE clause: Filters records based on specified conditions. Example: SELECT * FROM users WHERE age > 30;
JOIN operations: Combines rows from two or more tables based on a related column. Example: SELECT orders.id, users.name FROM orders JOIN ...
The getWindowHandles command retrieves all open window handles for switching between them in Selenium.
Use driver.getWindowHandles() to get a set of all window handles.
Convert the set to a list for easier access: List<String> windowHandles = new ArrayList<>(driver.getWindowHandles());
Switch to a specific window using driver.switchTo().window(windowHandles.get(index));
Close a window using driver.close() and s...
String is a sequence of characters in Java.
Strings are immutable in Java.
String class provides various methods for manipulating strings.
Strings can be concatenated using the '+' operator.
Strings can be compared using the 'equals()' method.
Strings can be converted to character arrays using the 'toCharArray()' method.
What people are saying about Infosys
I applied via Internshala and was interviewed in May 2021. There were 3 interview rounds.
Discussing my resume highlights my skills, experiences, and projects relevant to the software engineering role.
Experience with Java and Python in developing web applications.
Led a team project that improved application performance by 30%.
Contributed to open-source projects, enhancing my coding skills and collaboration.
Completed an internship at XYZ Corp, where I developed a feature that increased user engagement.
To debug a particular program without affecting others, use breakpoints and step through the code.
Set a breakpoint in the program you want to debug
Step through the code using a debugger to identify the issue
Use logging statements to track the flow of the program
Check the call stack to see which functions are being called
Use conditional breakpoints to stop the program at specific points
I applied via Campus Placement and was interviewed before Aug 2021. There were 3 interview rounds.
The first round was an aptitude test with questions ranging from basic mathematical concepts to logical/analytical questions. English was also included in the test. The difficulty was medium and I was able to solve 70-80% of the questions.
Two coding questions were the part of the test. I was supposed to solve and pass all the test cases for both the questions. The coding questions tested my knowledge in the field of arrays, loops and pointers. I was able to solve one and partially solve another.
I applied via Campus Placement and was interviewed before Sep 2021. There were 4 interview rounds.
Prepare normal for aptitude - maths, quant, analytic
My GD topic was Is internet good for students or not
I didn't attempt this as I was noob back in third year Engg
I applied via Campus Placement and was interviewed in Nov 2020. There were 6 interview rounds.
OOPs concepts are the fundamental principles of object-oriented programming.
Encapsulation - binding data and functions that manipulate the data
Inheritance - creating new classes from existing ones
Polymorphism - ability of objects to take on many forms
Abstraction - hiding implementation details and showing only functionality
Storage classes in C define the scope and lifetime of variables.
There are four storage classes in C: auto, register, static, and extern.
Auto variables are local to a block and have automatic storage duration.
Register variables are stored in CPU registers for faster access.
Static variables have a lifetime throughout the program and are initialized only once.
Extern variables are declared outside any function and can be a...
Linked list is a linear data structure. DFS and BFS are graph traversal algorithms.
Linked list is a collection of nodes where each node points to the next node.
DFS (Depth First Search) is a traversal algorithm that explores as far as possible along each branch before backtracking.
BFS (Breadth First Search) is a traversal algorithm that explores all the vertices of a graph in breadth-first order.
Example of linked list: ...
Optimize O(n2) program to O(log n)
Use binary search instead of linear search
Divide and conquer approach can be used
Implement efficient data structures like heap, AVL tree, etc.
Reduce unnecessary iterations and comparisons
Use memoization to avoid redundant calculations
I applied via Campus Placement and was interviewed in May 2021. There were 4 interview rounds.
based on 1 interview experience
based on 7 reviews
Rating in categories
Technology Analyst
54.7k
salaries
| ₹4.8 L/yr - ₹10 L/yr |
Senior Systems Engineer
53.8k
salaries
| ₹2.5 L/yr - ₹6.3 L/yr |
Technical Lead
35.1k
salaries
| ₹9.4 L/yr - ₹16.5 L/yr |
System Engineer
32.5k
salaries
| ₹2.4 L/yr - ₹5.3 L/yr |
Senior Associate Consultant
31.2k
salaries
| ₹8.1 L/yr - ₹15 L/yr |
TCS
Wipro
Cognizant
Accenture