Globant
10+ EMEDI PHARMACEUTICAL Interview Questions and Answers
Q1. How to remove repeated words from output in string without using predefined methods.
Removing repeated words from a string without using predefined methods.
Split the string into an array of words
Create an empty array to store unique words
Loop through the array of words and check if the word is already in the unique words array
If the word is not in the unique words array, add it
Join the unique words array back into a string
Q2. How to navigate to other tab in selenium? How to do work on different frame?
To navigate to other tab in Selenium, switch to the desired window handle. To work on different frame, switch to the frame using its name or index.
To navigate to other tab, use driver.switchTo().window() method
To work on different frame, use driver.switchTo().frame() method
To switch back to default content, use driver.switchTo().defaultContent() method
To switch to frame using name or id, use driver.switchTo().frame("frameName") or driver.switchTo().frame("frameId")
To switch t...read more
Q3. 1.Difference Between Const,Var,Char. 2.Oop's concept with example 3.JavaScript is async or sync language and explain the reason. 4.How to create a simple object in JavaScript. 5.Find element and Find Elements d...
read moreAnswers to common interview questions for Automation Test Engineer position.
Const is used for constant values that cannot be reassigned, var is used for variable declaration, and char is a data type for storing characters in programming languages.
OOPs concepts include inheritance, encapsulation, polymorphism, and abstraction. Example: Inheritance allows a class to inherit properties and methods from another class.
JavaScript is an asynchronous language, meaning it can execute ...read more
Q4. How to scroll in mobile using automation?
Scrolling in mobile can be done using swipe or touch actions.
Use swipe or touch actions to scroll in mobile automation
For swipe action, use swipe method with start and end coordinates
For touch action, use press and move methods with start and end coordinates
Example: driver.swipe(startX, startY, endX, endY, duration)
Example: TouchAction(driver).press(startX, startY).moveTo(endX, endY).release().perform()
Q5. How to take screenshot in selenium?
To take a screenshot in Selenium, use the getScreenshotAs() method.
Create an object of the TakesScreenshot interface
Use the getScreenshotAs() method to capture the screenshot
Save the screenshot to a desired location using the File class
Q6. Selenium webdriver definition and implementation.
Selenium WebDriver is a tool used for automating web application testing. It provides a programming interface to interact with web elements.
Selenium WebDriver is an open-source tool used for automating web application testing
It provides a programming interface to interact with web elements
It supports multiple programming languages such as Java, Python, C#, etc.
It can automate testing on various browsers such as Chrome, Firefox, Safari, etc.
It can interact with different types...read more
Q7. Print output in form of pyramid.
Print a pyramid using an array of strings as output.
Use nested loops to print each row of the pyramid.
Calculate the number of spaces and asterisks needed for each row.
Start with a single asterisk and increase by two for each row.
Q8. What is Inheritance? Polymorphism?
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class. Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Inheritance allows for code reusability by defining a new class based on an existing class.
Polymorphism enables flexibility in programming by allowing objects to be treated as instances of their parent class.
Example of inheritance: Class B inheriting from C...read more
Q9. What is Type coercion?
Type coercion is the process of converting one data type to another in programming.
Type coercion can happen implicitly or explicitly in programming languages.
Implicit type coercion occurs when the language automatically converts data types during operations.
Explicit type coercion occurs when the programmer manually converts data types using functions or operators.
Example: In JavaScript, the addition operator (+) can perform implicit type coercion by converting a number to a s...read more
Q10. API Error code with explaination?
API error codes are unique identifiers used to indicate specific errors in an API response.
API error codes are typically numeric or alphanumeric codes that correspond to specific errors in the API.
Each error code should have a corresponding explanation in the API documentation to help developers understand the issue.
Examples of API error codes include 400 Bad Request, 401 Unauthorized, and 404 Not Found.
Interview Process at EMEDI PHARMACEUTICAL
Top Automation Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month