Ness Digital Engineering
Prisma Space Frame Llc Interview Questions and Answers
Q1. Write selenium automation code for login yatra.com and add to cart
Selenium code to login and add to cart on yatra.com
Launch the yatra.com website
Enter login credentials and click on login button
Search for desired product and add to cart
Verify the product is added to cart
Q2. What is Interface. What are the interface in selenium
An interface is a contract between two entities defining the communication between them. In Selenium, interfaces are used to define the behavior of web elements.
An interface defines a set of methods that a class implementing it must implement
In Selenium, the WebElement interface is used to interact with web elements on a page
Other interfaces in Selenium include WebDriver, TakesScreenshot, and JavascriptExecutor
Interfaces allow for abstraction and modularity in code
Q3. What is main function in Java
Main function in Java is the entry point of any Java program.
Main function is declared as public static void main(String[] args)
It is the starting point of execution for any Java program
All the code inside main function is executed sequentially
Example: public static void main(String[] args) { System.out.println("Hello World!"); }
Q4. What is the Page Object Model
Page Object Model is a design pattern used in test automation to create an object repository for web UI elements.
It helps in reducing code duplication and improves code maintainability.
Each web page is represented as a separate class and the web elements on the page are defined as variables in the class.
The methods in the class perform actions on the web elements.
It separates the test logic from the page-specific logic.
It makes the tests more readable and easier to maintain.
E...read more
Q5. Api testing you know or not
Yes, I am familiar with API testing.
API testing involves testing the functionality, reliability, performance, and security of APIs.
It includes verifying the response data, status codes, headers, and error handling.
Tools like Postman, SoapUI, or cURL can be used for API testing.
Examples of API testing include testing RESTful APIs, web services, and microservices.
Test cases can be created to validate input/output, authentication, authorization, and data integrity.
Q6. What is xpath . type of xpath
XPath is a language used to navigate and select elements in an XML or HTML document.
XPath stands for XML Path Language
It uses path expressions to select nodes or sets of nodes in an XML or HTML document
There are two types of XPath: Absolute and Relative
Absolute XPath starts from the root node and selects the nodes based on the complete path
Relative XPath starts from the current node and selects the nodes based on the path relative to the current node
Q7. Write program for reverse string
Program to reverse a string
Create an empty string to store the reversed string
Loop through the original string from end to start
Append each character to the empty string
Return the reversed string
Q8. Polymorphism. type of polymorphism.
Polymorphism is the ability of an object to take on many forms. There are two types: compile-time and runtime.
Compile-time polymorphism is achieved through function overloading and operator overloading.
Runtime polymorphism is achieved through virtual functions and function overriding.
Polymorphism allows for code reusability and flexibility in object-oriented programming.
Example of compile-time polymorphism: function overloading - multiple functions with the same name but diff...read more
Top QA Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month