BUGSPOTTER

Bug Spotter Software Training Centre

Commonly asked Selenium Core Java questions for automation testing

Questions        

  1. What is Selenium and what are its components?
  2. What are the advantages of using Selenium for testing?
  3. What are the limitations of Selenium?
  4. How do you set up Selenium with Java?
  5. What is a WebDriver?
  6. What is the difference between findElement and findElements in Selenium?
  7. What is the difference between driver.close() and driver.quit() in Selenium?
  8. How do you handle alerts in Selenium?
  9. How do you handle multiple windows in Selenium?
  10. What are the different types of waits in Selenium?
  11. What is the difference between implicit and explicit waits in Selenium?
  12. What is Page Object Model (POM) in Selenium?
  13. What is TestNG and how is it used with Selenium?
  14. How do you execute JavaScript code in Selenium?
  15. How do you take screenshots in Selenium?
  16. What is a Selenium Grid and how is it used?
  17. What is the difference between Absolute XPath and Relative XPath in Selenium?
  18. How do you handle dropdowns in Selenium?
  19. What are the different types of locators in Selenium?
  20. What is a NoSuchElementException in Selenium?
  21. How do you handle frames in Selenium?
  22. What is a DesiredCapabilities class in Selenium?
  23. How do you handle cookies in Selenium?
  24. How do you handle synchronization issues in Selenium?
  25. How do you handle broken links in Selenium?
  26. What is a headless browser and how is it used with Selenium?
  27. How do you handle dynamic web elements in Selenium?
  28. What is a Robot Class in Selenium?
  29. What is an Actions Class in Selenium?
  30. How do you handle SSL certificate errors in Selenium?
  31. How do you handle file uploads in Selenium?
  32. What is the difference between assert and verify in Selenium?
  33. How do you handle pop-up windows in Selenium?
  34. What is a WebElement in Selenium?
  35. What is a Select Class in Selenium?
  36. How do you handle JavaScript alerts in Selenium?
  37. What is a TestListener in Selenium?
  38. What is the difference between @BeforeTest and @BeforeMethod in TestNG?
  39. What is the difference between @Test(enabled = false) and @Ignore in TestNG?
  40. How do you handle dynamic tables in Selenium?
  41. How do you handle mouse and keyboard events in Selenium?
  42. What is the difference between findElement and findElements in Selenium?
  43. How do you handle broken images in Selenium?
  44. What is the difference between headless and non-headless browsers in Selenium?
  45. How do you handle synchronization issues in Selenium?
  46. How do you handle JavaScript errors in Selenium?
  47. How do you handle dynamic dropdowns in Selenium?
  48. What is a Test Suite in Selenium?
  49. How do you handle SSL certificate errors in Selenium?
  50. What is the difference between assert and verify in Selenium?
  51. What is a TestNG listener in Selenium?
  52. What is the difference between @BeforeTest and @BeforeMethod in TestNG?
  53. How do you handle dynamic tables in Selenium?
  54. What is the difference between @Test(enabled = false) and @Ignore in TestNG?
  55. How do you handle mouse and keyboard events in Selenium?
  56. What is the difference between executeScript and executeAsyncScript in Selenium?
  57. How do you handle frame switching in Selenium?
  58. How do you handle Ajax calls in Selenium?
  59. What is a Soft Assertion in TestNG?
  60. What is a Hard Assertion in TestNG?
  61. How do you handle dynamic web pages in Selenium?
  62. What is a Selenium server?
  63. What is object-oriented programming?
  64. What is inheritance in Java?
  65. What is polymorphism in Java?
  66. What is encapsulation in Java?
  67. What is abstraction in Java?
  68. What is a constructor in Java?
  69. What is method overloading in Java?
  70. What is method overriding in Java?
  71. What is the difference between method overloading and method overriding in Java?
  72. What is a static keyword in Java?
  73. What is a final keyword in Java?
  74. What is an abstract class in Java?
  75. What is an interface in Java?
  76. What is a package in Java?
  77. What is a classpath in Java?
  78. What is a constructor chaining in Java?
  79. What is a try-catch block in Java?
  80. What is a throw keyword in Java?
  81. What is an exception in Java?
  82. What is the difference between checked and unchecked exceptions in Java?
  83. What is the use of finally block in Java?
  84. What is a file in Java?
  85. What is a stream in Java?
  86. What is the difference between FileInputStream and FileReader in Java?
  87. What is a Properties file in Java?
  88. What is a Map in Java?
  89. What is a List in Java?
  90. What is a Set in Java?
  91. What is a Iterator in Java?
  92. What is a Comparator in Java?
  93. What is a Lambda expression in Java?
  94. What is a Stream API in Java?
  95. What is a Thread in Java?
  96. Explain your automation framework
  97. Explain the automation testing lifecycle
  98. What is the Cucumber?
  99. Explain hybrid framework
  100.  What is the Utility Folder and why we create ?

Enroll Now and get 5% Off On Course Fees