i
Infosys
Filter interviews by
I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.
What people are saying about Infosys
I applied via Monster and was interviewed before Oct 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Apr 2023. There were 4 interview rounds.
Basic Aptitude questions. Candidate with average knowledge can crack it.
Two programming questions were asked. Difficulty level was medium.
I applied via Job Portal and was interviewed before Jun 2023. There was 1 interview round.
Hashmap is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
Hashmap is implemented using an array of linked lists or buckets to handle collisions.
Each key is hashed to determine its index in the array.
Common operations include put(key, value), get(key), and remove(key).
Example: HashMap
getWindowHandles returns all open window handles, getWindowHandle returns handle of current window
getWindowHandles returns a set of all window handles currently open in the browser
getWindowHandle returns the handle of the current window being focused on
Example: driver.getWindowHandles() vs driver.getWindowHandle()
I applied via Referral and was interviewed in Dec 2024. There was 1 interview round.
Extract the 14 characters before @ in a given URL
Use string manipulation to extract characters before @ symbol
Consider edge cases like no @ symbol or less than 14 characters before @
Handle special characters like %20 or %40
Regex pattern to match at least one capital letter, one small case letter, one digit, and one special character.
Use the regex pattern: (?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])
Example: Password@123
Code to output each word with vowel count in a given string.
Split the string into words using space as delimiter
Iterate through each word and count the number of vowels
Store the word and its vowel count in an array of strings
To find the maximum diagonal sum in a 2X2 Matrix, sum the elements of the main diagonal and the opposite diagonal.
Sum the elements of the main diagonal (top left to bottom right) and the opposite diagonal (top right to bottom left).
Compare the sums of both diagonals and return the maximum sum.
Example: For a 2X2 Matrix [[1, 2], [3, 4]], the main diagonal sum is 1+4=5 and the opposite diagonal sum is 2+3=5. The maximum d
To find the selected option text from a dropdown in Selenium, you can use the getFirstSelectedOption() method.
Use the Select class to work with dropdown elements in Selenium
Use the getFirstSelectedOption() method to get the selected option
Retrieve the text of the selected option using getText() method
Find duplicates in a dropdown along with their occurrence/frequency.
Iterate through the dropdown options and store each option in a hashmap with its frequency.
Identify options with frequency greater than 1 as duplicates.
Return the duplicates along with their occurrence/frequency.
Resolve merge conflicts in git by using git commands and tools.
Pull the latest changes from the remote repository
Use 'git status' to identify conflicting files
Open the conflicting files and manually resolve the conflicts
Add the resolved files to the staging area using 'git add'
Commit the changes with a merge message using 'git commit'
Use git cherry-pick command to bring specific commit changes to your branch.
Identify the commit hash of the specific changes you want to bring to your branch.
Checkout to the branch where you want to apply the changes.
Use 'git cherry-pick <commit-hash>' command to apply the specific commit changes to your branch.
To switch to a frame in Selenium, use driver.switchTo().frame() method. To come out of a frame, use driver.switchTo().defaultContent() method.
Use driver.switchTo().frame() method to switch to a frame
Use driver.switchTo().defaultContent() method to come out of a frame
Example: driver.switchTo().frame("frameName");
Example: driver.switchTo().defaultContent();
I applied via Naukri.com and was interviewed in Aug 2024. There were 2 interview rounds.
typeAndWait is used to wait for a specific element to appear before proceeding, while type does not wait.
typeAndWait is used in Selenium WebDriver to wait for a specific element to appear before typing into it
type does not wait for the element to appear and may cause errors if the element is not present
typeAndWait is useful for dynamic web pages where elements may take time to load
To change window size in Selenium, you can use the set_window_size() method of the WebDriver class.
Use driver.set_window_size(width, height) to change the window size
Specify the width and height in pixels as parameters
Example: driver.set_window_size(800, 600) will set the window size to 800x600 pixels
TestNG provides different listeners to customize test execution and reporting.
TestNG provides several built-in listeners such as IInvokedMethodListener, ITestListener, ISuiteListener, etc.
Listeners can be used to perform actions before or after test methods, suites, or entire test runs.
Listeners can be implemented by creating classes that extend the corresponding listener interfaces.
Listeners can be configured in the t...
I was interviewed in Oct 2024.
Interviewer gave a java program and asked output.
I applied via Approached by Company and was interviewed before Apr 2023. There were 3 interview rounds.
Basic selenium automation coding question and QA related MCQs
Count duplicates in a string
Iterate through the string and store each character in a hashmap with its count
Return the count of characters with count greater than 1
Program to sort array of strings
Use a sorting algorithm like bubble sort, selection sort, or merge sort
Compare strings using strcmp() function in C or compareTo() method in Java
Handle edge cases like empty array or array with only one element
I applied via Walk-in and was interviewed in Jul 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
based on 1 interview
Interview experience
based on 3 reviews
Rating in categories
Technology Analyst
55.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Systems Engineer
50.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
System Engineer
39.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
30.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate Consultant
28k
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Wipro
Cognizant
Accenture