i
Infosys
Filter interviews by
I applied via Recruitment Consulltant and was interviewed in Dec 2024. There was 1 interview round.
Fundamental questions about Selenium encompass topics such as: 1. right-click actions and mouse movement, 2. screenshot methods and functions, 3. handling multiple window controls, 4. concepts of Object-Oriented Programming (OOP), 5. differences among collections, sets, and maps, 6. framework architecture, 7. sorting an array without using built-in functions, and 8. managing failed test cases in TestNG.
I applied via Referral and was interviewed in Apr 2024. There was 1 interview round.
Postman is a popular API testing tool used for testing and debugging APIs.
Postman allows users to send requests to APIs and receive responses
It provides a user-friendly interface for creating and managing API requests
Postman can be used for automated testing of APIs
It supports various request types such as GET, POST, PUT, DELETE, etc.
Postman helps in API testing by providing a user-friendly interface to send requests, automate testing, and analyze responses.
Postman allows testers to easily send requests to APIs and view responses in a user-friendly interface.
It provides features for automating API testing, such as creating test scripts and running collections of tests.
Postman also offers tools for analyzing responses, including detailed logs and te...
Locators in Selenium are used to identify web elements on a webpage for automation testing purposes.
Locators include ID, class name, name, tag name, link text, partial link text, and xpath.
ID is the most efficient locator as it is unique for each element.
Xpath is powerful but can be slow and brittle if not used correctly.
Using CSS selectors is preferred over xpath for better performance.
Locators can be used with findEl
My framework is a data-driven framework using Selenium WebDriver and TestNG for automated testing.
Data-driven approach for test data management
Integration of Selenium WebDriver for web automation
Utilization of TestNG for test case management and reporting
I applied via Company Website and was interviewed in Feb 2024. There was 1 interview round.
Check the password encryption by verifying the hashing algorithm used and comparing the encrypted password with a known hash value.
Check the hashing algorithm used to encrypt the password (e.g. MD5, SHA-256)
Compare the encrypted password with a known hash value for the same password
Ensure that the encryption process is irreversible, meaning the original password cannot be easily obtained from the encrypted version
To get the URL of a webpage, you can use the window.location object in JavaScript.
Use window.location.href to get the full URL of the webpage
Use window.location.hostname to get the domain of the webpage
Use window.location.pathname to get the path of the webpage
Use window.location.protocol to get the protocol of the webpage (http or https)
One method to remove spaces in a string is by using the replace() method in JavaScript.
Use the replace() method with a regular expression to replace all spaces with an empty string
Example: str.replace(/\s/g, '') will remove all spaces from the string 'hello world'
Another method is to use the split() method to split the string by spaces and then join the array elements without spaces
Handle popups by using automation tools, handling alerts, switching to popup windows, and using explicit waits.
Use automation tools like Selenium to handle popups
Handle alerts using switchTo().alert() method
Switch to popup windows using switchTo().window() method
Use explicit waits to ensure popup elements are loaded before interacting with them
Agile is iterative and flexible, while Waterfall is sequential and rigid.
Agile involves continuous feedback and adaptation, while Waterfall follows a linear approach.
Agile allows for changes throughout the development process, while Waterfall requires detailed planning upfront.
Agile promotes collaboration and communication among team members, while Waterfall has distinct phases with limited interaction.
Agile is better ...
Common bugs in API testing include incorrect data formats, authentication issues, and performance problems.
Incorrect data formats such as missing or incorrect parameters
Authentication issues like invalid tokens or permissions
Performance problems such as slow response times or timeouts
Selenium is a suite of tools for web automation testing, while Selenium WebDriver is a tool specifically for automating web browsers.
Selenium is a suite of tools that includes Selenium WebDriver, Selenium IDE, and Selenium Grid.
Selenium WebDriver is a tool for automating web browsers and is the most commonly used component of Selenium.
Selenium WebDriver allows testers to write tests in various programming languages lik...
Use Selenium WebDriver to find all elements on a webpage using Java locators
Use findElements method to locate all elements on the webpage
Use By class to specify the locator strategy (e.g. By.xpath, By.id, By.className)
Store the located elements in a List
Polymorphism is the ability of a function or method to behave differently based on the object it is called with.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types or classes.
Examples include method overloading and method overriding in object-oriented programming.
An interface in programming is a contract that defines the methods that a class must implement.
Interfaces in programming are used to define a set of methods that a class must implement.
They provide a way to achieve abstraction and multiple inheritance in programming languages.
Interfaces are used to define the behavior of a class without specifying how it is implemented.
In languages like Java, classes can implement mult...
Infosys interview questions for designations
I applied via Referral and was interviewed in Mar 2024. There were 3 interview rounds.
Get interview-ready with Top Infosys Interview Questions
I applied via Naukri.com and was interviewed in Dec 2023. There were 3 interview rounds.
Asked middle level java codes output
I used OOPs concepts in my framework for creating reusable components, inheritance, and encapsulation.
Used inheritance to create a base test class with common methods and properties
Implemented encapsulation to hide the internal details of the test cases
Utilized polymorphism for creating different types of test cases using the same interface
I applied via Recruitment Consulltant and was interviewed in Jan 2024. There was 1 interview round.
String is immutable in Java to ensure security, thread safety, and optimization.
Immutable strings prevent accidental modification of data.
Immutable strings can be safely shared among multiple threads.
Immutable strings allow for efficient memory allocation and caching.
Immutable strings are used in various security-related operations.
Immutable strings enable the use of string pooling for optimization.
I applied via Recruitment Consulltant and was interviewed in Apr 2023. There were 3 interview rounds.
To handle broken links in Selenium, we can use the HTTPURLConnection class to check the response code of the link.
Get all the links on the page using findElements() method
Iterate through each link and get the href attribute
Create a URL object for the href attribute
Open a connection using HTTPURLConnection class
Get the response code using getResponseCode() method
If the response code is not 200, mark the link as broken
What people are saying about Infosys
2 Interview rounds
based on 66 reviews
Rating in categories
Technology Analyst
56.3k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
50k
salaries
| ₹2.8 L/yr - ₹8 L/yr |
System Engineer
39.2k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
30.6k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.4k
salaries
| ₹6.2 L/yr - ₹15 L/yr |
TCS
Wipro
Cognizant
Accenture