1000 Selenium Interview Questions from basics to advanced

 1000 Selenium Interview Questions from basics to advanced


  1. What is Automation Testing? 
  2. What is the difference between Manual and Automation Testing?
  3. What are the benefits of Automation Testing?
  4. Which Test cases needs to be automated?
  5. What are the popular test automation tools for functional testing?
  6. What is the main purpose of Automation Testing?
  7. What is the goal of Automation Testing?
  8. Why Selenium should be selected as a Test tool?
  9. What is Selenium and what are the different components and versions of Selenium?
  10. What are the testing types that can be supported by Selenium?
  11. What are the limitations of Selenium?
  12. What is the difference between Selenium IDE, Selenium RC and Selenium WebDriver?
  13. When should I use Selenium IDE?
  14. What are locators, different types of locators that can be used in Selenium and their priorities?
  15. What is the difference between Assert and Verify commands?
  16. What is an XPath?
  17. What is the difference between ‘/’ and ‘//’ in XPath?
  18. What is Same Origin Policy and how it can be handled? How to overcome same origin policy through web driver?
  19. When should I use Selenium Grid?
  20. What do we mean by Selenium 1, Selenium 2 and Selenium 3?
  21. What is the latest Selenium tool?
  22. How do I launch the browser using WebDriver?
  23. What are the different types of drivers available in WebDriver?
  24. What are the different types of waits available in WebDriver?
  25. How to type into a text box using Selenium?
  26. How can you find whether an element is displayed on the screen using Selenium?
  27. How can we get a text on a web element using Selenium?
  28. How to handle a drop-down field and select a value from it using Selenium ?
  29. What are the different types of navigation commands in WebDriver?
  30. How to click on a hyperlink using Selenium WebDriver?
  31. How to handle frames in WebDriver?
  32. How do you use findElement() and findElements()?
  33. How to find more than one web element in to a list?
  34. What is the difference between driver.close() and driver.quit() commands?
  35. Can Selenium handle window based pop up?
  36. How can we handle window based pop up using Selenium?
  37. How can we handle web-based pop up using Selenium?
  38. How to assert title of the web page?
  39. How to mouse hover on a web element using WebDriver?
  40. How to retrieve CSS Properties of an element?
  41. How to capture screen-shot in Selenium WebDriver ?
  42. What is JUnit?
  43. What are JUnit annotations?
  44. What is TestNG and what is its use?
  45. How is TestNG better than JUnit?
  46. How to set test case priority in TestNG?
  47. How can I read test data from Excel files?
  48. What is the difference between POI and JXL Jars?
  49. What is the difference between Selenium and QTP/UFT?
  50. Can WebDriver test mobile applications?
  51. Can Captcha be automated using Selenium?
  52. What is Object Repository and how can we create an Object Repository in Selenium?
  53. What types of tests have you automated?
  54. How many test cases have you automated per day?
  55. Why do you prefer Selenium Automation tool?
  56. What is Selenium IDE?
  57. What are the browsers supported by Selenium IDE?
  58. What is Selenium RC?
  59. What is Selenium WebDriver?
  60. What is Selenium Grid and when do we go for it?
  61. What are the advantages of Selenium Grid?
  62. What are the types of WebDriver API’s that are supported/available in Selenium?
  63. Which WebDriver implementation claims to be the fastest?
  64. What are the programming languages supported by Selenium WebDriver?
  65. What are the operating systems supported by Selenium WebDriver?
  66. What are the open source frameworks supported by Selenium WebDriver?
  67. What is an XPath and What is the difference between Absolute and Relative XPath? Give examples?
  68. What is the difference between Soft Assert and Hard Assert in Selenium?
  69. What are the verification points available in Selenium?
  70. Is WebDriver a class or interface?
  71. Is FirefoxDriver a class or interface?
  72. What is the super interface of WebDriver ?
  73. Explain the line of code WebDriver driver = new FirefoxDriver();?
  74. Why do we create a reference variable ‘driver’ of type WebDriver and what is the purpose of its creation?
  75. What are the different types of exceptions you have faced in Selenium WebDriver?
  76. How to login into any site if it is showing an authentication pop-up for Username and Password?
  77. What is implicit wait in Selenium WebDriver?
  78. What is WebDriver Wait in Selenium WebDriver?
  79. How to input text into the text box fields without calling the sendKeys()?
  80. How to clear the text inside the text box fields using Selenium WebDriver?
  81. How to get an attribute value of an element using Selenium WebDriver?
  82. How to press Enter key on text box in Selenium WebDriver?
  83. How to pass a text execution for 5 seconds at a specific point?
  84. Is Selenium Server needed to run Selenium WebDriver scripts?
  85. What happens if we run this command driver.get(“www.google.com”);?
  86. What is an alternative to driver.get() method to open a URL using Selenium WebDriver?
  87. What is the difference between driver.get(“URL”) and driver.navigate().to(“URL”) commands?
  88. Can I navigate back and forth in a browser using Selenium WebDriver?
  89. What are the different types of navigation commands in Selenium WebDriver?
  90. How to fetch the current page URL in Selenium WebDriver?
  91. What is a Framework?
  92. What are the advantages of Automation Framework?
  93. What are the different types of Frameworks?
  94. How do you decide a particular framework for a project?
  95. How can we maximize browser window in Selenium WebDriver?
  96. How to delete cookies in Selenium?
  97. What are the different ways for refreshing the page using Selenium WebDriver?
  98. What is the difference between driver.getWindowHandle() and driver.getWinowHandles() in Selenium WebDriver and their return type?
  99. How to handle hidden elements in Selenium WebDriver?
  100. How can you find broken links in a page using Selenium WebDriver?
  101. How to find more than one web element in the list?
  102. How to read a JavaScript variable in Selenium WebDriver?
  103. What is JavascriptExecutor and in which case JavascriptExecutor will help in Selenium automation?
  104. How to handle Ajax calls in Selenium WebDriver?
  105. List some scenarios which we cannot automate using Selenium WebDriver?
  106. How you build object repository in your project framework?
  107. What is Page Object Model (POM) and its advantages?
  108. What is Page Factory?
  109. What is the difference between Page Object Model and Page Factory?
  110. What are the advantages of Page Object Model?
  111. How can use Recovery Scenario in Selenium WebDriver?
  112. How to upload a file in Selenium WebDriver?
  113. How to download a file in Selenium WebDriver?
  114. How to run Selenium WebDriver tests from command line?
  115. How to switch to frames in Selenium WebDriver?
  116. How to connect to a database in Selenium?
  117. How to resize browser window using Selenium WebDriver?
  118. How to scroll web page up and down using Selenium WebDriver?
  119. How to perform right click (Context Click) action in Selenium WebDriver?
  120. How to perform double click action in Selenium WebDriver?
  121. How to perform drag and drop action in Selenium WebDriver?
  122. How to highlight elements using Selenium WebDriver?
  123. Have you used any cross browser testing tool to run Selenium Scripts on cloud?
  124. What are the DesiredCapabitlies in Selenium WebDriver and their use?
  125. What is Continuous Integration?
  126. How to achieve database testing in Selenium?
  127. What is TestNG?
  128. What are Annotations and what are the different annotations available in TestNG?
  129. What is TestNG Assert and list out some common assertions supported by TestNG?
  130. How to create and run TestNG.xml?
  131. How to set test case priority in TestNG?
  132. What is parameterized testing in TestNG?
  133. How to run a group of test cases using TestNG?
  134. What is the use of @Listener annotation in TestNG?
  135. How can we create a data driven framework using TestNG?
  136. Where you have applied OOPS in Automation Framework?
  137. How to handle Chrome Browser notifications in Selenium?
  138. Explain any Test Automation Framework?
  139. Tell some popular Test Automation Frameworks?
  140. Why Framework?
  141. Which Test Automation Framework you are using and why?
  142. Mention the name of the Framework which you are using currently in your project, explain it in details along with its benefits?
  143. Mention the name of the Framework which you have hands on experience?
  144. Can you explain the Selenium framework which you have used in your project?
  145. What type of test cases do you pick up to automate?
  146. What type of test cases you won’t pickup to automate?
  147. What is Selenium and what it is composed of?
  148. What is Selenium 1.0?
  149. What is Selenium 2.0?
  150. What is Selenium 3.0?
  151. Explain what is assertion in Selenium and what are the different types of assertions?
  152. What is the use of XPath in Selenium?
  153. List out the technical challenges with Selenium?
  154. What is the difference between type keys and type commands?
  155. What are the four parameters you have to pass in Selenium?
  156. While using click() command, can you use screen coordinates?
  157. What is the difference between setSpeed() and sleep() methods?
  158. What is heightened privileged browsers?
  159. What are the features of TestNG and list some of the functionalities which makes it more effective?
  160. What is the difference between Implicit Wait and Explicit Wait?
  161. Which attribute you should consider throughout the script in frame for (if no frame id as well as no frame name”)?
  162. Explain the different JUnit annotations mostly used while writing the Selenium scripts?
  163. Explain what is a data driven framework?
  164. Explain what is a keyword driven framework?
  165. Explain how Selenium Grid works?
  166. Can we use Selenium Grid for performance testing?
  167. List the advantages of Selenium WebDriver over Selenium Server?
  168. Mention the different capabilities of Selenium WebDriver ?
  169. While injecting capabilities in WebDriver to perform tests on a browser (which is not supported by a webdriver), what is the limitation that one can come across?
  170. Explain how you can find broken images in a page using Selenium WebDriver?
  171. Explain how you can switch back from a frame?
  172. Explain how you can handle colors in Selenium WebDriver?
  173. How can you prepare customized HTML report using TestNG in hybrid framework?
  174. How can you generated HTML report from your test scripts?
  175. Explain how you can insert a break point in Selenium IDE?
  176. Explain how you can debug the tests in Selenium IDE?
  177. What are the different types of Selenese?
  178. What are the limitations of Selenium IDE?
  179. What are the two modes of views in Selenium IDE?
  180. In Selenium IDE, what are the element locators that can be used to locate the elements on web page?
  181. In Selenium IDE, can you generate random numbers and dates for test data?
  182. How can you convert any Selenium IDE tests from Selenese to other other language?
  183. Using Selenium IDE, is it possible to get data from a particular HTML table cell?
  184. Explain what can cause a Selenium IDE test to fail?
  185. In Selenium IDE, explain how you can execute a single line?
  186. In which format does the source view show the script in Selenium IDE? Explain, how you can insert a start point in Selenium IDE?
  187. What are regular expressions and how you can use them in Selenium IDE?
  188. What are core extensions in Selenium IDE?
  189. How you will handle switching between multiple windows in Selenium IDE?
  190. How you will verify the specific position of an Web Element in Selenium IDE?
  191. How you will retrieve the message in an Alert box in Selenium IDE?
  192. Why Selenium RC is preferred over Selenium IDE?
  193. What is the difference between Selenium RC and Selenium WebDriver?
  194. What are the advantages of using Selenium RC over Selenium IDE?
  195. What are the technical limitations while using Selenium RC?
  196. Why to use TestNG with Selenium WebDriver?
  197. Using Selenium, how can you handle Network latency?
  198. What is the command that can be used for entering values into the text box fields?
  199. What are the challenges in handling AJAX calls in Selenium WebDriver?
  200. What is IntelliJ and how it is different from Eclipse IDE?
  201. What are the different ways to customize TestNG report?
  202. What is required to generated the PDF reports?
  203. What are Selenium WebDriver Listeners?
  204. What are the different types of Listeners in TestNG?
  205. What is the API that is required for implementing Database Testing using Selenium WebDriver?
  206. When to use AutoIt?
  207. Why do we need Session Handling while using Selenium WebDriver?
  208. What is the advantage of using GitHub for Selenium?
  209. What are the advantages and disadvantages of Selenium over other testing tools like QTP and TestComplete?
  210. What is exception test in Selenium?
  211. Why and how will you use an Excel sheet in your Selenium project?
  212. How can you redirect browsing from a browser through some proxy?
  213. How do you achieve synchronization in WebDriver?
  214. Write a code to wait for a particular element to be visible on a page.
  215. Write a code to wait for an alert to appear.
  216. How to scroll down a page using JavaScript in Selenium?
  217. How to scroll down to a particular element?
  218. How to handle keyboard and mouse actions using Selenium?
  219. Which files can be used as data source for different frameworks?
  220. How can you fetch an attribute from an element?
  221. How to retrieve typed text from a text box?
  222. How to send alt or shift or control or enter or tab key in Selenium WebDriver?
  223. How to set the size of browser window using Selenium?
  224. How to switch to a new window (new tab) which opens up after you click on a link?
  225. How to pass parameters through testng.xml to a test case?
  226. Explain DataProviders in TestNG using an example
  227. Can I call a single data provider method for multiple functions and classes?
  228. How to skip a @Test method or a code block in TestNG?
  229. What is Soft Assertion in selenium and how can you mark a test case as failed by using soft assertion?
  230. Explain what is a Group Test in TestNG?
  231. Explain How does TestNG allow you to state dependencies with an example?
  232. Explain what does @Test(InvocationCount=?) and @Test(threadPoolSize=?) indicate?
  233. How is Selenium different from commercial browser automation tools?
  234. Which language is used in Selenium IDE?
  235. What are Accessors in Selenium IDE?
  236. Can I control the speed and pause the test executed in Selenium IDE?
  237. There is id, name, XPath, CSS locator, which one should I use?
  238. Selenium RC, any way to speed up the Selenium Server load time?
  239. How to set a global base URL for every test case of one test suite file in Selenium IDE?
  240. How to check for 404 using Selenium WebDriver?
  241. How to get HTTP Response code using Selenium WebDriver?
  242. How to stop selenium from creating temporary Firefox profiles using web driver?
  243. How to close browser popup window in Selenium WebDriver?
  244. How to select values in combo-box item using Selenium WebDriver?
  245. How to get the html source code of a particular web element using Selenium WebDriver
  246. What are the different driver classes available in Selenium WebDriver API?
  247. What automation tools could be used for post-release validation with continuous intergration?
  248. Does the latest version of Selenium WebDriver support Mobile Testing?
  249. What is the major differences between XPath Expressions and CSS Selectors?
  250. How to select a check box in Selenium?
  251. How to verify whether the checkbox option or radio button is selected or not?
  252. What is the alternative way to click on login button?
  253. How can you find the value of different attributes like name, class, value of an element?
  254. How to verify whether a button is enabled on the page?
  255. What kind of mouse actions can be performed using Selenium?
  256. What kind of keyboard operations can be performed in Selenium?
  257. Can Bar Code Reader be automated using Selenium?
  258. How to locate a link using its text in Selenium?
  259. Write the program to locate/fetch all the links on a specific web page?
  260. What is Robot API? What methods of Robot class do you know?
  261. How do you get the height and width of a text box field using Selenium?
  262. Which package can be imported while working with WebDriver?
  263. What is the purpose of deselectAll() method?
  264. What is the purpose of getOptions() method?
  265. How to handle alerts in Selenium WebDriver?
  266. What is hybrid framework?
  267. What could be the cause for Selenium WebDriver test to fail?
  268. What is the difference between @Factory and @DataProvider annotation?
  269. How can we run test cases in parallel using TestNG?
  270. What are the different forms of Selenium?
  271. Can we test APIs or web services using Selenium WebDriver?
  272. How can we locate an element by only partially matching its attributes value in XPath?
  273. How can we locate elements using their text in XPath?
  274. How can we move to parent of an element using XPath?
  275. How can we move to nth child element using XPath?
  276. What is the syntax of finding elements by class using CSS Selectors?
  277. What is the syntax of finding elements by id using CSS Selectors?
  278. How can we select elements by their attribute value using CSS Selector?
  279. How can we move to nth child element using CSS Selector?
  280. How can we submit a form in Selenium?
  281. How can we fetch a text written over an element?
  282. What are some expected conditions that can be used in Explicit Waits?
  283. How can we fetch the title of the page in Selenium?
  284. How can we fetch the page source in Selenium?
  285. What are some randomly encountered exceptions in Selenium ?
  286. How to check which option in the drop-down is selected?
  287. How to handle HTTPS websites in Selenium? Does Selenium support them?
  288. How to accept the SSL untrusted connection?
  289. What is HtmlUnitDriver?
  290. What is the use of @Factory annotation in TestNG?
  291. What are some common assertions provided by TestNG?
  292. Name an API used for logging in Java?
  293. What is the use of logging in Automation?
  294. Can Selenium Test an application on Android Browser?
  295. How to select a radio button in Selenium WebDriver?
  296. How to handle AJAX popup windows?
  297. Give the example for method overload in Selenium?
  298. Write the code for Reading and Writing to Excel through Selenium?
  299. What are the pre-requisites for running Selenium WebDriver?
  300. What is WebDriverBackedSelenium?
  301. How to invoke an application in Selenium WebDriver?
  302. How to get the number of frames on a page using Selenium WebDriver?
  303. What is the command line we have to write inside a .bat file to execute a Selenium Project when we are using testng?
  304. How to check if a text is highlighted on the page?
  305. How to check whether a text is underlined or not?
  306. How to change the URL on a web page using Selenium WebDriver?
  307. There is a scenario whenever “Assert.assertEquals()” function fails automatically it has to take screenshot. How can you achieve this?
  308. Open a browser in memory, means whenever it will will try to open a browser the browser page must not come and can perform the operation internally?
  309. While explaining the framework, what are points which should be covered?
  310. How to press Shift+Tab?
  311. What is the use of contextClick()?









Comments

Popular posts from this blog

Selenium Interview Questions -2

Selenium WebDriver Questions-1