i
Infosys
Filter interviews by
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
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
What people are saying about Infosys
I applied via Referral and was interviewed in May 2024. There was 1 interview round.
Boundary value analysis is a software testing technique used to test boundaries between valid and invalid input values.
Helps identify errors at boundaries of input ranges
Tests values at the lower and upper limits, as well as just inside and just outside those limits
Reduces the number of test cases needed for thorough testing
Example: Testing a program that accepts numbers from 1 to 100 would include test cases for 0, 1,
Regression testing should be performed whenever there are changes made to the software.
Perform regression testing after any code changes, bug fixes, or new feature implementations.
Regression testing should also be done after configuration changes or updates to the software environment.
Automate regression testing to ensure quick and efficient testing of the entire application.
Regression testing is essential before relea...
I applied via LinkedIn and was interviewed in Apr 2024. There was 1 interview round.
I applied via campus placement at Sambhram Institute of Technology, Bangalore and was interviewed before Oct 2022. There were 4 interview rounds.
It was computer based aptitude test.
They took GD for 6 people at once by gaving a common topic to talk about with individual time constraints.
NTT's headquarters is located in Tokyo, Japan.
NTT's headquarters is in Tokyo, Japan
NTT stands for Nippon Telegraph and Telephone Corporation
Tokyo is the capital city of Japan
I applied via Referral and was interviewed in Dec 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
Absolute Xpath starts from the root element, while relative Xpath starts from any node in the DOM structure.
Absolute Xpath starts with a single forward slash (/) and starts selection from the root node.
Relative Xpath starts with a double forward slash (//) and starts selection from the current node or any node in the DOM structure.
Absolute Xpath is more brittle and prone to breaking if the structure of the page changes...
The return would be the number of tabs open in the browser.
The return value would be an integer representing the count of open tabs.
For example, if there are 5 tabs open, the return value would be 5.
Types of waits in Selenium include Implicit Wait, Explicit Wait, and Fluent Wait.
Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit Wait: Waits for a certain condition to occur before proceeding further in the code.
Fluent Wait: Waits for a condition to be true with a defined polling frequency.
Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Exceptions in Selenium are errors that occur during test execution, disrupting the flow of the test script.
Exceptions are thrown when there is an unexpected behavior in the application under test or in the test script itself.
Common exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, TimeoutException, and StaleElementReferenceException.
Handling exceptions in Selenium can be done using try-...
Feature files contain high-level description of the functionality to be tested, while step definitions are the implementation of the steps in the feature file using code.
Feature files are written in Gherkin syntax and describe the behavior of the application in plain text.
Step definitions are written in programming languages like Java, Ruby, etc., and map the steps in the feature file to automation code.
Feature files a...
Data can be input in Cucumber using feature files and step definitions.
Data can be input in feature files using scenarios and scenario outlines
Step definitions can be used to define the actions to be taken with the input data
Data tables can be used in feature files to input structured data
Examples keyword can be used in scenario outlines to provide multiple sets of input data
Test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements. Test plan is a document outlining the scope, approach, resources, and schedule of testing activities. Test scenarios are detailed descriptions of possible interactions with the system.
Test case: specific conditions to be tested, expected results, steps to execute
Test plan: overall strate...
Hooks in Java are methods that allow subclasses to override or extend the behavior of a superclass.
Hooks are commonly used in frameworks like JUnit and TestNG for test automation.
They are often used for setup and teardown operations before and after test methods.
Examples include @Before, @After, @BeforeClass, and @AfterClass annotations in JUnit.
I applied via Recruitment Consulltant and was interviewed in Nov 2024. There was 1 interview round.
I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.
Java program to print sum of digits from a given string
Iterate through each character in the string
Check if the character is a digit using Character.isDigit() method
Convert the digit character to integer using Character.getNumericValue() method
Sum up all the digits found in the string
OOPs concepts used in the framework include inheritance, polymorphism, encapsulation, and abstraction.
Inheritance is used to create a parent-child relationship between classes. For example, a base class 'Page' can be inherited by 'HomePage' and 'LoginPage' classes.
Polymorphism allows objects of different classes to be treated as objects of a common superclass. For instance, a 'click' method can be implemented different...
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example of compile-time polymorphism: function overloading in Java.
Example of runtime polymorphism: method overriding in Java
Java program to print the sum of elements in a string array.
Convert each element in the string array to an integer using Integer.parseInt()
Sum up all the integers to get the total sum
based on 5 reviews
Rating in categories
Technology Analyst
56.3k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
49.4k
salaries
| ₹2.8 L/yr - ₹9.2 L/yr |
System Engineer
38.9k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
30.7k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.1k
salaries
| ₹6.2 L/yr - ₹17 L/yr |
TCS
Wipro
Cognizant
Accenture