automationScript

Top 50 Most asked Selenium automation Interview questions 2021

Top 50 most asked Selenium automation Interview questions are given below. Please contact us if you want solution of these question for your preparation.

  1. What is automation testing?
  2. What are the types of automation testing?
  3. What are the advantages of automation testing?

Selenium WebDriver application

  1. What is Selenium?
  2. Can you explain the Architecture of Selenium.
  3. What are the benefits of Selenium WebDriver as an automation testing tool?
  4. What’s the advantage of Selenium WebDriver UFT/QTP or any other tool?
  5. What are the different types of locators in Selenium WebDriver?
  6. What’s the difference between the “assert” and “verify” commands?
  7. What’s the difference between a “hard assert” and a “soft assert?”
  8. What is difference between driver.get() and driver.navigate().
  9. What are the different types of methods of WebElement provided by Selenium WebDriver?
  10. What is the difference between findElement and findelements?
  11. Write a script to count a number of links present on the page.
  12. What are the types of drivers available in WebDriver?
  13. What is WebDriver and ChromeDriver? How are these two related?
  14. What are the different types of waits in Selenium WebDriver?
  15. What is diffence between driver.quit() and driver.close()?
  16. What is meaning of broken link on a webpage ?
  17. How can we find no of broken links on a webpage ?

Locators in Selenium

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Typecasting in Java

  1. What is typecasting ?
  2. Can you give an example of typecasting in selenium Webdriver?
  3. Do we use typecasting in TakeScreenshot and ? If yes how?

Question related to JavascriptExecutor

  1. What is JavascriptExecutor?
  2. How to execute JavaScript in Selenium WebDriver?
  3. What is difference between JavascriptExecutor and ExecuteScript?
  4. What are different types of steps we can perform with the help of JavaScript ?
  5. How to scroll on a page with JavaScript?
  6. What are other uses of JavaScript in Selenium WebDriver?
  7. How do you select a value in a dropdown in WebDriver?
  8. Can you name at least 2 things which can’t be automated using Selenium?

WebElement in Selenium WebDriver

  1. What is an WebElement?
  2. What is difference between findElement and findElements?
  3. Where is the return type of above two methods ?

Selenium Grid - Practical Implementation

  1. What is use of Selenium Grid?
  2. How to setup Selenium Grid ?
  3. What is hub and node and how to set it up ?
  4. How to perform cross browser testing using Selenium Grid?
  5. How to perform parallel execution using Selenium Grid ?
  6. What is the difference between Parallel execution of TestNG and Selenium Grid?

Automation Framework using Selenium

  1. What is POage object Model?
  2. What are the advantages of Page Object Model (POM)?
  3. What is Junit? Can you explain some of it’s annotations?
  4. What is testNG? Can you explain some of it’s annotations?
  5. How do you print the current running method name?
  6. How do you read and write data stored in an Excel file?
  7. How do you read and write data stored in a properties file?
  8. How to you read and write data stored in an xml file?
  9. How do you read and write data stored in a text file?
  10. How do you manage locators in Selenium WebDriver based automation project ?
  11. What is PageFactory and what are it’s benefits and drawbacks?
  12. What is By in Selenium WebDriver?
  13. How do you connect to data base using Selenium WebDriver?
  14. What is JSON?

Reporting in Automation Framework

  1. How do you maintain log files in your framework?
  2. Have you used Extent reports?
  3. How can we setup reporting in our automation framework?

Implementation of Jenkins with Selenium

  1. What is Jenkins?
    What is a job in Jenkins?
  2. How do you create a pipeine in Jenkins?
  3. What is meaning of Stages in Jenkins?
  4. What are different stages in Jenkins?
  5. What are different types of Syntax in Jenkins pipeline?
  6. How can we run selenium tests with the help of Jenkins?
  7. How can we run parallel tests with the help of Jenkins?

Checkout the code repo

Subscribe for updates