CSC  – Selenium Interview Questions


  1. Explain the Framework you used in Selenium.
  2.  

  3. Configuration and Execution of testcases using Selenium/Maven/TestNG/Jenkins.
  4.  

  5. How to find the nearest element to a given element using xpath?
  6.  

  7. How will you trigger an event in Selenium?
  8.  

  9. How will you parameterize data in Selenium webdriver?
  10.  

  11. TestNG data parameterization using excel.
  12.  

  13. Format of testng.xml and maven pom.xml.
  14.  

  15. How will you take snapshot with Selenium Grid?
  16.  

  17. Consider there are 6 methods in your class, you need to run the first three in sequential order and next three in parallel.How will you do it using testing? 
  18.  

  19. Consider there are two elements in a page with same id.How will you locate it ?
  20.  

  21. You need to identify a element inside a frame and then you need to click on the element/link outside the frame.Write a code for this.
  22.  

  23. What is Encapsulation?
  24.  

  25. Difference between overloading and overriding
  26.  

  27. How will you prevent a method from overriding?
  28.  

  29. Difference between JDK and JRE. Which one of them is platform dependnet?
  30.  

  31. Inheritance with example. – Can secondary subclass can inherits the methods and variables of super class?