TestingXperts
Expleo Solutions Interview Questions and Answers
Q1. What is protected internal access modifier, explain
Protected internal access modifier allows access to members within the same assembly or derived classes.
Can be applied to methods, properties, fields, and events
Access is limited to the current assembly or derived classes
Used when you want to restrict access to certain members within the same assembly or derived classes
Example: protected internal int age = 25; // can be accessed within the same assembly or derived classes
Q2. Write a sample code to explain overloading concept of oops
Overloading in OOP allows multiple methods with same name but different parameters.
Overloading is achieved by changing the number, type or order of parameters
Return type of the methods does not matter in overloading
Example: void print(int a), void print(int a, int b), void print(String s)
Q3. Explain polymorphism and where does it apply in selenium.
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism in Selenium allows for the same test script to be used for different web elements.
It can be achieved through method overloading or method overriding in Selenium.
For example, using the same click() method to click on a button, link, or dropdown in Selenium tests.
Q4. Write a program to add two numbers in c#
Program to add two numbers in c#
Declare two variables to store the numbers
Take input from user for both variables
Add the variables and store the result in a third variable
Display the result
Q5. Write xpath using AND and OR condition
Xpath can use AND and OR conditions to locate elements based on multiple criteria.
To use AND, simply chain multiple conditions together with no operator in between.
To use OR, use the 'or' keyword between conditions.
Example: //div[@class='class1' and @id='id1'] or //div[@class='class2']
Q6. Explain different type of selenium waits
Selenium waits are used to make the test scripts wait for a certain condition to be met before proceeding.
Implicit Wait: Waits for a certain amount of time before throwing an exception if the element is not found.
Explicit Wait: Waits for a certain condition to be met before proceeding further in the code.
Fluent Wait: Waits for a certain condition with a defined maximum amount of time to wait for.
Thread.sleep(): Pauses the execution for a specified amount of time.
More about working at TestingXperts
Interview Process at Expleo Solutions
Top Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month