Xchanging – Selenium Interview Questions
Here is the list of Selenium Interview Questions which are recently asked in Xchanging company. These questions are included for both Freshers and Experienced professionals. Our Selenium Training has Answered all the below Questions.
1. Your experience and project background
2. What type of framework do you use?
Types of Framework:- Linear Automation Framework.
- Modular Based Testing Framework.
- Library Architecture Testing Framework.
- Data-Driven Framework.
- Keyword-Driven Framework.
- Hybrid Testing Framework
I used Linear Automation Framework. The main advantage of using this as Record and Playback' in a linear fashion.
3. What are your regular selenium activities?
For example:- Understanding the requirements of features to be automated and getting it in automation roadmap
- To Monitor daily executed automation script result
- Raise defect or fix script based on failure analysis
- Understanding best practices in automation
- Identify code optimization area to make execution faster
- IC integration, reporting, better logging, code optimization etc
4. How do you manage test data for Selenium tests?
Three methods are used here,- The elementary approach
- Refresh your data source
- The selfish data generation approach
5. Do you know RDBMS and what do you use?
Yes, It is a relation database .
A relational database organizes data into tables which can be linked or related based on data common to each. This capability enables you to retrieve an entirely new table from data in one or more tables with a single query.
It also allows you and your business to better understand the relationships among all available data and gain new insights for making better decisions or identifying new opportunities.
6. How do you make reporting in Selenium?
To generate reporting in selenium with three methods.- emailable-report.html
- index.html
- Reporter Class
7. How do you verify a given login button is named as “SignUp” and how will you confirm it is not “Login”?
Test Cases For a Signup Page- Buttons
- Required Fields
- Optional Fields
- Email Validation
- Phone number Validation
- Password Validation
- User Interface
8. What statement do you use verify specific error message in the application?
import org.openqa.selenium.By;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
public class TestNaukri {
@Test
public void TestError()
{
// Open browser
FirefoxDriver driver=new FirefoxDriver();
// maximize browser
driver.manage().window().maximize();
// Open URL
driver.get("http://www.naukri.com/");
// Click on login button
driver.findElement(By.id("p0submit")).click();
// This will capture error message
String actual_msg=driver.findElement(By.id("emailId_err")).getText();
// Store message in variable
String expect="plz enter valid email";
// Here Assert is a class and assertEquals is a method which will compare two values if// both matches it will run fine but in case if does not match then if will throw an
//exception and fail testcases
// Verify error message
Assert.assertEquals(actual_msg, expect);
}
}
9. What is your notice period and can you join earlier than 30 days?
10. Explain the framework that we have worked
For example, You have to explain each component of your Framework Architecture and you have to specify right from the point of the Test Automation execution to generating the reports
11. What jar file is used for excel and why?
The most importantly in many projects JXL API is used for excel.
12. What build tool is used and whether we have exp in maven
For example, Maven tool is used in my project. Maven is built using a plugin-based architecture that allows it to make use of any application controllable through standard input.
13. What is inheritance?
The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important feature of Object Oriented Programming.
14. What is Selenese?
Selenium commands, also known as Selenese are the set of commands used in Selenium IDE that run your tests. A sequence of Selenium commands together is known as test script.
15. What are the limitations of Selenium?
The top 3 limitations of selenium given below,- No support for desktop applications
- No support for REST and SOAP Platforms
- No Reporting capability
Free PDF : Get our updated Selenium Course Content pdf
16. What unit framework is used?
Java is the main for selenium. The JUnit and NUnit are mainly used unit framework.
17. How reports are generated?
The below two methods are used to generate reports:
18. How do we write test cases?
Following are the important points to write test cases: First of all, test Cases need to be simple and transparent
The most important thins is to create Test Case with End User in Mind
Also, Avoid test case repetition
Importantly, Do not Assume
Ensure 100% Coverage
Identifiable test case
Implement Testing Techniques.
Peer Review.
19. Asked to write some manual test cases
Test Case for a Mobile:- Check the battery and Sim for correct insertion
- proper operation of Switch ON and Switch OFF functions
- To access Incoming call.
- To access outgoing call.
- Etc.,
20. How do we handle dynamic web elements in webpage?
Below methods are used to handle dynamic web elements in web page:- Absolute Path method.
- Use Relative XPath
- Identify by index.
- Use Multiple attributes to locate an element.
21. If a text is displayed in different places in all subsequent pages how do we handle it?
22. What are the framework used?
Top frameworks are:- Data-driven framework.
- Keyword driven framework.
- Hybrid framework.
23. Whether we worked on custom framework and existing framework – product and what are the possible aspects from the custom framework and existing framework to develop the project from scratch?
24. How we build framework?
Every user interface design starts with an empty artboard, and every designer has a process they use to transform that blank canvas into a fully functioning product.
This process includes all the small design components created, and the steps the designer goes through to build a cohesive whole, from colors to buttons and everything in between.
25. If there are severity 1 test cases in all modules to automate how do we select and automate?
Understand the concept of priority and severity well
Always assign the severity level based on the issue type as this will affect its priority
Understand how a particular scenario or Test Case would affect the end-user
Need to consider how much time it would take to fix the defect based on its complexity and time to verify the defect
26. How parallelly TestNG can be executed?
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.chrome.*;
import org.testng.annotations.Test;
public class ParallelTest {
public WebDriver driver;
@Test
public void FirefoxTest() {
//Initializing the firefox driver (Gecko)
driver = new FirefoxDriver();
driver.get("https://www.demoqa.com");
driver.findElement(By.xpath("//*[@id=\"app\"]/div/div/div[2]/div/div[1]/div/div[1]")).click();
driver.quit();
}
@Test
public void ChromeTest()
{
//Initialize the chrome driver
driver = new ChromeDriver();
driver.get("https://www.demoqa.com");
driver.findElement(By.xpath("//*[@id=\"app\"]/div/div/div[2]/div/div[1]/div/div[1]")).click();
driver.quit();
}
27. If 1 thread of 1 machine is dependent on 3rd thread of other machine how can we execute
28. How to run the scheduler and to run the bat file?
Below steps are followed to run the scheduler- Go to control panel.
- Administrative tool.
- Task scheduler and create a task which will trigger run.bat file at the time you want.
29. If there are 10 link boxes with 10 unique fields each boxes have then how many permutations we can have test cases…I said 10 to the power 10 if so is it feasible to do automation and how?
30. Why should Selenium be selected as a test tool?
Following are the reasons,- Platforms and Browsers supported by Selenium
- Visibility in End-to-End Testing
- Integration With Other Tools
- Reduces Turnaround Time
Book a Free Mock Interviews and Test your Selenium skills with our Experts
TOP MNC's SELENIUM INTERVIEW QUESTIONS & ANSWERS
Here we listed all Selenium Interview Questions and Answers which are asked in Top MNCs. Periodically we update this page with recently asked Questions, please do visit our page often and be updated in Selenium.
Related Blogs
To become a Selenium Certified professional and join in your dream company, Enroll now for our Best Selenium Training. We help you to crack any levels of Selenium Interviews and We offering Selenium Training with Placement Assistance.