Filter interviews by
I applied via Recruitment Consulltant and was interviewed in Jul 2024. There were 3 interview rounds.
To connect strings using Java Selenium, use the concatenation operator (+) or the concat() method.
Use the concatenation operator (+) to connect strings: String result = str1 + str2;
Use the concat() method to connect strings: String result = str1.concat(str2);
Snapshot code for capturing images
posted on 13 Jun 2022
Basic program
Selenium commands are used to automate browser actions.
Selenium commands can be used to open a browser window
Commands can be used to navigate to a specific URL
Commands can be used to interact with web elements on a page
Commands can be used to perform actions like clicking a button or filling out a form
Commands can be used to handle alerts and pop-ups
Examples of Selenium commands include get(), findElement(), click(), s
I applied via Naukri.com
Bug life cycle is the process of identifying, reporting, fixing, retesting, and closing a software bug.
Bug identification: Bug is identified by QA engineer during testing.
Bug reporting: QA engineer reports the bug with detailed information.
Bug fixing: Developer fixes the bug based on the reported details.
Bug retesting: QA engineer retests the fixed bug to ensure it is resolved.
Bug closing: Once the bug is confirmed fix
Query to find duplicate records in a database table
Use GROUP BY clause with HAVING COUNT() function to identify duplicate records
Select columns to display duplicate records
Example: SELECT column1, column2, COUNT(*) FROM table_name GROUP BY column1, column2 HAVING COUNT(*) > 1
Use a file copy command to copy one file to another
Use the 'cp' command in Unix/Linux systems
Syntax: cp source_file destination_file
Example: cp file1.txt file2.txt
Program to count letters in a word using array of strings
Create an array to store the count of each letter in the word
Iterate through each letter in the word and increment the count in the array
Return the array with the count of each letter
To find elements not available in DOM in Selenium, use try-catch block to handle NoSuchElementException.
Use try-catch block to handle NoSuchElementException when trying to find elements not available in DOM.
Catch the exception and handle it appropriately in the code.
Use WebDriverWait with ExpectedConditions to wait for the element to be present before interacting with it.
Normal java coding questions
I applied via LinkedIn and was interviewed in Sep 2023. There were 2 interview rounds.
Defect Life Cycle is the process of identifying, reporting, fixing, retesting, and closing software defects.
Defect identification: Finding and documenting the issue in the software.
Defect reporting: Informing the development team about the identified defect.
Defect fixing: Developers resolve the reported defect.
Defect retesting: QA team verifies if the defect is fixed correctly.
Defect closing: Once the defect is confirm
Different types of waits in Selenium include Implicit Wait, Explicit Wait, Fluent Wait, and Page Load Timeout.
Implicit Wait: Waits for a certain amount of time before throwing a No Such Element Exception.
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 specified polling frequency.
Page Load Timeout: Waits for the entire page
Use a loop to iterate through each word in the string and extract the first character of each word.
Split the string into an array of words using a space as the delimiter
Iterate through each word in the array and extract the first character of each word
Store the first characters in a new array
Program to reverse a number
Convert the number to a string to easily manipulate each digit
Iterate through the string in reverse order and append each digit to a new string
Convert the reversed string back to an integer
It is not possible to multiply 2 strings in a mathematical sense.
Strings can be concatenated using the + operator.
To repeat a string, use the * operator followed by the number of repetitions.
To convert a string to a number, use the parseInt() or parseFloat() functions.
To get non-repeating substring from a string, we can use the sliding window technique.
Create a hash set to store the characters in the current window.
Iterate through the string and add each character to the hash set.
If a repeating character is found, remove the first character from the hash set and move the window.
Keep track of the longest non-repeating substring found so far.
Return the longest non-repeating substring.
Implicit wait is a global wait applied to all elements, while explicit wait is applied to specific elements.
Implicit wait is set once and applied to all elements in the script
Explicit wait is set for specific elements and waits until a certain condition is met
Implicit wait is not recommended as it can slow down the script unnecessarily
Explicit wait is more efficient as it only waits for the necessary time
Example of imp...
SQL query to find nth salary
Use ORDER BY and LIMIT clauses
Use subquery to exclude previous salaries
To connect strings using Java Selenium, use the concatenation operator (+) or the concat() method.
Use the concatenation operator (+) to connect strings: String result = str1 + str2;
Use the concat() method to connect strings: String result = str1.concat(str2);
Snapshot code for capturing images
Senior Implementation Analyst
4
salaries
| ₹10.6 L/yr - ₹13 L/yr |
Senior QA Engineer
3
salaries
| ₹5.4 L/yr - ₹8.4 L/yr |
HSBC Group
Cholamandalam Investment & Finance
SBI Cards & Payment Services
BNY