HomeSelenium

1500 plus Selenium Interview Questions – Includes Questions on Selenium, Java, Cucumber, TestNG, Frameworks and many more

1500 plus Selenium Interview Questions – Includes Questions on Selenium, Java, Cucumber, TestNG, Frameworks and many more

The following are the 1500 plus interview Questions on Selenium Automation that I have collected so far.

Notes:

  • > This list will keep on updating for adding more questions to the list
  • > If you find any interview question that is not covered in the list, please comment in this blog post, so that I can update in this list
  • > Your comment/suggestions/feedback of Interview Questions in this post will help a lot of people in the QA community for helping them in cracking the interviews.
  • > These are just Interview Questions without answers and I will be creating the answers for each and every question listed below in future posts.

1500 Plus Selenium Interview Questions (Includes questions on Selenium, Java, Cucumber, TestNG and other topics)

  1. What is Selenium and what are the different components and versions of Selenium? (Click here for answer)
  2. What are locators, different types of locators that can be used in Selenium and their priorities?(Click here for answer)
  3. What are the different types of drivers available in WebDriver? (Click here for answer)
  4. How do I launch the browser using WebDriver? (Click here for answer)
  5. What are the different types of navigation commands in WebDriver? (Click here for answer)
  6. How can you find whether an element is displayed on the screen using Selenium? (Click here for answer)
  7. How can we get a text on a web element using Selenium? (Click here for answer)
  8. How to type into a text box using Selenium? (Click here for answer)
  9. How to handle a drop-down field and select a value from it using Selenium ? (Click here for answer)
  10. What are the different types of waits available in WebDriver? (Click here for answer)
  11. What is the latest Selenium tool? (Click here for answer)
  12. What do we mean by Selenium 1, Selenium 2 and Selenium 3? (Click here for answer)
  13. When should I use Selenium Grid? (Click here for answer)
  14. What is the difference between ‘/’ and ‘//’ in XPath? (Click here for answer)
  15. What is an XPath? (Click here for answer)
  16. What is the difference between driver.close() and driver.quit() commands? (Click here for answer)
  17. Is WebDriver a class or interface? (Click here for answer)
  18. What is the super interface of WebDriver ? (Click here for answer)
  19. How to find more than one web element in to a list? (Click here for answer)
  20. Is FirefoxDriver a class or interface? (Click here for answer)
  21. Explain the line of code WebDriver driver = new FirefoxDriver();? (Click here for answer)
  22. How to handle frames in WebDriver? (Click here for answer)
  23. How to click on a hyperlink using Selenium WebDriver? (Click here for answer)
  24. What are the programming languages supported by Selenium WebDriver? (Click here for answer)
  25. What are the operating systems supported by Selenium WebDriver? (Click here for answer)
  26. What are the browsers supported by Selenium WebDriver? (Click here for answer)
  27. What is the difference between Implicit Wait and Explicit Wait? (Click here for answer)
  28. How to read and verify the text on the tool tip using Selenium WebDriver? (Click here for answer)
  29. Can Selenium Automate Desktop Applications? (Click here for answer)
  30. What is Automation Testing?
  31. What is the difference between Manual and Automation Testing?
  32. What are the benefits of Automation Testing?
  33. Which Test cases needs to be automated?
  34. What are the popular test automation tools for functional testing?
  35. What is the main purpose of Automation Testing?
  36. What is the goal of Automation Testing?
  37. Why Selenium should be selected as a Test tool?
  38. What are the testing types that can be supported by Selenium?
  39. What are the limitations of Selenium?
  40. What is the difference between Selenium IDE, Selenium RC and Selenium WebDriver?
  41. When should I use Selenium IDE?
  42. What is Selenese?
  43. What is the difference between Assert and Verify commands?
  44. What is Same Origin Policy and how it can be handled? How to overcome same origin policy through web driver?
  45. How do you use findElement() and findElements()?
  46. Can Selenium handle window based pop up?
  47. How can we handle window based pop up using Selenium?
  48. How can we handle web-based pop up using Selenium?
  49. How to assert title of the web page?
  50. How to mouse hover on a web element using WebDriver?
  51. How to retrieve CSS Properties of an element?
  52. How to capture screen-shot in Selenium WebDriver ?
  53. What is JUnit?
  54. What are JUnit annotations?
  55. What is TestNG and what is its use?
  56. How is TestNG better than JUnit?
  57. How to set test case priority in TestNG?
  58. What is a Framework?
  59. What are the advantages of Automation Framework?
  60. What are the different types of Frameworks?
  61. How do you decide a particular framework for a project?
  62. How can I read test data from Excel files?
  63. What is the difference between POI and JXL Jars?
  64. What is the difference between Selenium and QTP/UFT?
  65. Can WebDriver test mobile applications?
  66. Can Captcha be automated using Selenium?
  67. What is Object Repository and how can we create an Object Repository in Selenium?
  68. What types of tests have you automated?
  69. How many test cases have you automated per day?
  70. Have you created any Framework?
  71. Can you explain the Selenium Framework which you have used in your project?
  72. Why do you prefer Selenium Automation tool?
  73. What is Selenium IDE?
  74. What are the browsers supported by Selenium IDE?
  75. What is Selenium RC?
  76. What is Selenium WebDriver?
  77. What is Selenium Grid and when do we go for it?
  78. What are the advantages of Selenium Grid?
  79. What is a Hub in Selenium Grid?
  80. What is a Node in Selenium Grid?
  81. What are the types of WebDriver API’s that are supported/available in Selenium?
  82. Which WebDriver implementation claims to be the fastest?
  83. What are the open source frameworks supported by Selenium WebDriver?
  84. What is an XPath and What is the difference between Absolute and Relative XPath? Give examples?
  85. What is the difference between Soft Assert and Hard Assert in Selenium?
  86. What are the verification points available in Selenium?
  87. Why do we create a reference variable ‘driver’ of type WebDriver and what is the purpose of its creation?
  88. What are the different types of exceptions you have faced in Selenium WebDriver?
  89. How to login into any site if it is showing an authentication pop-up for Username and Password?
  90. What is implicit wait in Selenium WebDriver?
  91. What is WebDriver Wait in Selenium WebDriver?
  92. What is Fluent Wait in Selenium WebDriver?
  93. How to input text into the text box fields without calling the sendKeys()?
  94. How to clear the text inside the text box fields using Selenium WebDriver?
  95. How to get an attribute value of an element using Selenium WebDriver?
  96. How to press Enter key on text box in Selenium WebDriver?
  97. How to pause a text execution for 5 seconds at a specific point?
  98. Is Selenium Server needed to run Selenium WebDriver scripts?
  99. What happens if we run this command driver.get(“www.tutorialsninja.com”);?
  100. What is an alternative to driver.get() method to open a URL using Selenium WebDriver?
  101. What is the difference between driver.get(“URL”) and driver.navigate().to(“URL”) commands?
  102. Can I navigate back and forth in a browser using Selenium WebDriver?
  103. What are the different types of navigation commands in Selenium WebDriver?
  104. How to fetch the current page URL in Selenium WebDriver?
  105. How can we maximize browser window in Selenium WebDriver?
  106. How to delete cookies in Selenium?
  107. What are the different ways for refreshing the page using Selenium WebDriver?
  108. What is the difference between driver.getWindowHandle() and driver.getWinowHandles() in Selenium WebDriver and their return type?
  109. How to handle hidden elements in Selenium WebDriver?
  110. How can you find broken links in a page using Selenium WebDriver?
  111. How to find more than one web element in the list?
  112. How to read a JavaScript variable in Selenium WebDriver?
  113. What is JavascriptExecutor and in which case JavascriptExecutor will help in Selenium automation?
  114. How to handle Ajax calls in Selenium WebDriver?
  115. List some scenarios which we cannot automate using Selenium WebDriver?
  116. How you build object repository in your project framework?
  117. What is Page Object Model (POM) and its advantages?
  118. What is Page Factory?
  119. What is the difference between Page Object Model and Page Factory?
  120. What are the advantages of Page Object Model?
  121. How can use Recovery Scenario in Selenium WebDriver?
  122. How to upload a file in Selenium WebDriver?
  123. How to download a file in Selenium WebDriver?
  124. How to run Selenium WebDriver tests from command line?
  125. How to switch to frames in Selenium WebDriver?
  126. How to connect to a database in Selenium?
  127. How to resize browser window using Selenium WebDriver?
  128. How to scroll web page up and down using Selenium WebDriver?
  129. How to perform right click (Context Click) action in Selenium WebDriver?
  130. How to perform double click action in Selenium WebDriver?
  131. How to perform drag and drop action in Selenium WebDriver?
  132. How to highlight elements using Selenium WebDriver?
  133. Have you used any cross browser testing tool to run Selenium Scripts on cloud?
  134. What are the DesiredCapabitlies in Selenium WebDriver and their use?
  135. What is Continuous Integration?
  136. How to achieve database testing in Selenium?
  137. What is TestNG?
  138. What are Annotations and what are the different annotations available in TestNG?
  139. What is TestNG Assert and list out some common assertions supported by TestNG?
  140. How to create and run TestNG.xml?
  141. How to set test case priority in TestNG?
  142. What is parameterized testing in TestNG?
  143. How to run a group of test cases using TestNG?
  144. What is the use of @Listener annotation in TestNG?
  145. How can we create a data driven framework using TestNG?
  146. Where you have applied OOPS in Automation Framework?
  147. How to handle Chrome Browser notifications in Selenium?
  148. Explain any Test Automation Framework?
  149. Tell some popular Test Automation Frameworks?
  150. Why Framework?
  151. Which Test Automation Framework you are using and why?
  152. Mention the name of the Framework which you are using currently in your project, explain it in details along with its benefits?
  153. Mention the name of the Framework which you have hands on experience?
  154. Can you explain the Selenium framework which you have used in your project?
  155. What type of test cases do you pick up to automate?
  156. What type of test cases you won’t pickup to automate?
  157. What is Selenium and what it is composed of?
  158. What is Selenium 1.0?
  159. What is Selenium 2.0?
  160. What is Selenium 3.0?
  161. How will you find an element using Selenium?
  162. List out the test types that are supported by Selenium?
  163. Explain what is assertion in Selenium and what are the different types of assertions?
  164. What is the use of XPath in Selenium?
  165. List out the technical challenges with Selenium?
  166. What is the difference between type keys and type commands?
  167. While using click() command, can you use screen coordinates?
  168. What are the advantages of Selenium?
  169. Why testers should opt for Selenium and not QTP?
  170. What are the four parameters you have to pass in Selenium?
  171. What is the difference between setSpeed() and sleep() methods?
  172. What is heightened privileged browsers?
  173. What are the features of TestNG and list some of the functionalities which makes it more effective?
  174. Which attribute you should consider throughout the script in frame for (if no frame id as well as no frame name”)?
  175. Explain the different JUnit annotations mostly used while writing the Selenium scripts?
  176. Explain what is a data driven framework?
  177. Explain what is a keyword driven framework?
  178. How to assert text on a web page using Selenium?
  179. Explain how Selenium Grid works?
  180. Can we use Selenium Grid for performance testing?
  181. List the advantages of Selenium WebDriver over Selenium Server?
  182. Mention the different capabilities of Selenium WebDriver ?
  183. 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?
  184. Explain how you can find broken images in a page using Selenium WebDriver?
  185. Explain how you can handle colors in Selenium WebDriver?
  186. Explain how you can switch back from a frame?
  187. How can you prepare customized HTML report using TestNG in hybrid framework?
  188. How can you generated HTML report from your test scripts?
  189. Explain how you can insert a break point in Selenium IDE?
  190. Explain how you can debug the tests in Selenium IDE?
  191. What are the different types of Selenese?
  192. What are the limitations of Selenium IDE?
  193. What are the two modes of views in Selenium IDE?
  194. In Selenium IDE, what are the element locators that can be used to locate the elements on web page?
  195. In Selenium IDE, can you generate random numbers and dates for test data?
  196. How can you convert any Selenium IDE tests from Selenese to other other language?
  197. Using Selenium IDE, is it possible to get data from a particular HTML table cell?
  198. Explain what can cause a Selenium IDE test to fail?
  199. In Selenium IDE, explain how you can execute a single line?
  200. In which format does the source view show the script in Selenium IDE? 23. Explain, how you can insert a start point in Selenium IDE?
  201. Using Selenium IDE, how can you test whether the locator you have written on your own is able to find the elements?
  202. What are regular expressions and how you can use them in Selenium IDE?
  203. What are core extensions in Selenium IDE?
  204. How you will handle switching between multiple windows in Selenium IDE?
  205. How you will verify the specific position of an Web Element in Selenium IDE?
  206. How you will retrieve the message in an Alert box in Selenium IDE?
  207. Why Selenium RC is preferred over Selenium IDE?
  208. What is the difference between Selenium RC and Selenium WebDriver?
  209. What are the advantages of using Selenium RC over Selenium IDE?
  210. What are the technical limitations while using Selenium RC?
  211. Why to use TestNG with Selenium WebDriver?
  212. Using Selenium, how can you handle Network latency?
  213. What is the command that can be used for entering values into the text box fields?
  214. What are the challenges in handling AJAX calls in Selenium WebDriver?
  215. What is IntelliJ and how it is different from Eclipse IDE?
  216. What are the different ways to customize TestNG report?
  217. What is required to generated the PDF reports?
  218. What are Selenium WebDriver Listeners?
  219. What are the different types of Listeners in TestNG?
  220. What is the API that is required for implementing Database Testing using Selenium WebDriver?
  221. When to use AutoIt?
  222. Why do we need Session Handling while using Selenium WebDriver?
  223. What is the advantage of using GitHub for Selenium?
  224. What are the advantages and disadvantages of Selenium over other testing tools like QTP and TestComplete?
  225. What is exception test in Selenium?
  226. Why and how will you use an Excel sheet in your Selenium project?
  227. How can you redirect browsing from a browser through some proxy?
  228. How do you achieve synchronization in WebDriver?
  229. Write a code to wait for a particular element to be visible on a page.
  230. Write a code to wait for an alert to appear.
  231. How to scroll down a page using JavaScript in Selenium?
  232. How to scroll down to a particular element?
  233. How to handle keyboard and mouse actions using Selenium?
  234. Which files can be used as data source for different frameworks?
  235. . How can you fetch an attribute from an element?
  236. How to retrieve typed text from a text box?
  237. How to send alt or shift or control or enter or tab key in Selenium WebDriver?
  238. How to set the size of browser window using Selenium?
  239. How to switch to a new window (new tab) which opens up after you click on a link?
  240. How to pass parameters through testng.xml to a test case?
  241. Explain DataProviders in TestNG using an example
  242. Can I call a single data provider method for multiple functions and classes?
  243. How to skip a @Test method or a code block in TestNG?
  244. What is Soft Assertion in selenium and how can you mark a test case as failed by using soft assertion?
  245. Explain what is a Group Test in TestNG?
  246. Explain How does TestNG allow you to state dependencies with an example?
  247. Explain what does @Test(InvocationCount=?) and @Test(threadPoolSize=?) indicate?
  248. How is Selenium different from commercial browser automation tools?
  249. What are the set of tools available with Selenium?
  250. Which Selenium tool should be used?
  251. Which language is used in Selenium IDE?
  252. What are Accessors in Selenium IDE?
  253. Can I control the speed and pause the test executed in Selenium IDE?
  254. Where do I see the results of Test Execution in Selenium IDE?
  255. Where do I see the description of commands used in Selenium IDE?
  256. Can I build test suite using Selenium IDE?
  257. What verification points are available in Selenium IDE?
  258. There is id, name, XPath, CSS locator, which one should I use?
  259. Selenium RC, any way to speed up the Selenium Server load time?
  260. How to set a global base URL for every test case of one test suite file in Selenium IDE?
  261. How to check for 404 using Selenium WebDriver?
  262. How to get HTTP Response code using Selenium WebDriver?
  263. How to stop selenium from creating temporary Firefox profiles using web driver?
  264. How to close browser popup window in Selenium WebDriver?
  265. How to select values in combo-box item using Selenium WebDriver?
  266. What is the difference between Selenium IDE, Server, RC and WebDriver?
  267. How to get the html source code of a particular web element using Selenium WebDriver?
  268. What are the different driver classes available in Selenium WebDriver API?
  269. What automation tools could be used for post-release validation with continuous intergration?
  270. Does the latest version of Selenium WebDriver support Mobile Testing?
  271. What is the major differences between XPath Expressions and CSS Selectors?
  272. How to select a check box in Selenium?
  273. How to verify whether the checkbox option or radio button is selected or not?
  274. What is the alternative way to click on login button?
  275. How can you find the value of different attributes like name, class, value of an element?
  276. How to verify whether a button is enabled on the page?
  277. What kind of mouse actions can be performed using Selenium?
  278. What kind of keyboard operations can be performed in Selenium?
  279. Can Bar Code Reader be automated using Selenium?
  280. How to locate a link using its text in Selenium?
  281. Write the program to locate/fetch all the links on a specific web page?
  282. What is Robot API? 106. What methods of Robot class do you know?
  283. How do you get the height and width of a text box field using Selenium?
  284. Which package can be imported while working with WebDriver?
  285. What is the purpose of deselectAll() method?
  286. What is the purpose of getOptions() method?
  287. How to handle alerts in Selenium WebDriver?
  288. What is hybrid framework?
  289. Can you explain the line of code WebDriver driver = new FirefoxDriver();?
  290. What could be the cause for Selenium WebDriver test to fail?
  291. What is the difference between @Factory and @DataProvider annotation?
  292. How can we run test cases in parallel using TestNG?
  293. What are the different forms of Selenium?
  294. Can we test APIs or web services using Selenium WebDriver?
  295. How can we locate an element by only partially matching its attributes value in XPath?
  296. How can we locate elements using their text in XPath?
  297. How can we move to parent of an element using XPath?
  298. How can we move to nth child element using XPath?
  299. What is the syntax of finding elements by class using CSS Selectors?
  300. What is the syntax of finding elements by id using CSS Selectors?
  301. How can we select elements by their attribute value using CSS Selector?
  302. How can we move to nth child element using CSS Selector?
  303. How can we submit a form in Selenium?
  304. How can we fetch a text written over an element?
  305. What are some expected conditions that can be used in Explicit Waits?
  306. How can we fetch the title of the page in Selenium?
  307. How can we fetch the page source in Selenium?
  308. What are some randomly encountered exceptions in Selenium ?
  309. How to check which option in the drop-down is selected?
  310. How to handle HTTPS websites in Selenium? Does Selenium support them?
  311. How to accept the SSL untrusted connection?
  312. What is HtmlUnitDriver?
  313. What is the use of @Factory annotation in TestNG?
  314. What are some common assertions provided by TestNG?
  315. Name an API used for logging in Java?
  316. What is the use of logging in Automation?
  317. Can Selenium Test an application on Android Browser?
  318. How to select a radio button in Selenium WebDriver?
  319. How to handle AJAX popup windows?
  320. Give the example for method overload in Selenium?
  321. Write the code for Reading and Writing to Excel through Selenium?
  322. What are the pre-requisites for running Selenium WebDriver?
  323. What is WebDriverBackedSelenium?
  324. How to invoke an application in Selenium WebDriver?
  325. How to get the number of frames on a page using Selenium WebDriver?
  326. What is the command line we have to write inside a .bat file to execute a Selenium Project when we are using testng?
  327. How to check if a text is highlighted on the page?
  328. How to check whether a text is underlined or not?
  329. How to change the URL on a web page using Selenium WebDriver?
  330. There is a scenario whenever “Assert.assertEquals()” function fails automatically it has to take screenshot. How can you achieve this?
  331. 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?
  332.  While explaining the framework, what are points which should be covered?
  333. How to press Shift+Tab?
  334. What is the use of contextClick()?
  335. How do you accommodate project specific method in your framework?
  336. What are the different components of your framework and explain each?
  337. How to select all the check boxes in a page?
  338. Count the number of links in a page?
  339. How do you identify the XPath of element on your browser?
  340. Which one is better XPath or CSS Selectors and the reasons for the same?
  341. How will you handle dynamic web tables when you don’t have any idea on the number of rows or columns will be displayed every-time?
  342. What are the different assertions or check points used in your Selenium WebDriver scripts?
  343. What is Actions class in WebDriver and its methods?
  344. What is the difference between @BeforeMethod and @BeforeClass ?
  345. What are the different attributes for @Test annotation?
  346. What are OOPS concepts?
  347. Provide real time examples for each and every OOPS concepts?
  348. What is inheritance?
  349. What is the difference between method overloading and method overriding?
  350. Does java supports multiple inheritance? Give reasons?
  351. Write a java program to find the factorial of a given number ?
  352. What are the different access specifiers in Java?
  353. Why do we go for Automation Testing?
  354. Write a code to make use of assert if my username is incorrect.
  355. Define Selenium?
  356. What are the top Selenium alternatives available for free?
  357. What are the open source frameworks does Selenium support?
  358. What are different versions of Selenium available you have used and what are the additional features you have seen from the previous versions?
  359. What is the principle difference between a Data-driven framework and a Keyword Driven Framework?
  360. What are the two most common practices for automation testing?
  361. What is Test Driven Development (TDD) Framework?
  362. What is Behavior Driven Development (BDD) Framework?
  363. What are the main traits of a good Software Test Automation framework?
  364. What are the challenges have you faced with Selenium and how did you overcome them?
  365. What are the different components of Test Automation Framework?
  366. What are the benefits does WebDriver have over Selenium RC?
  367. Which of the WebDriver APIs is the fastest and why?
  368. What is the command to bind a node to Selenium Grid?
  369. Which of Java. C-Sharp or Ruby can we use with Selenium Grid?
  370. What are Selenium Grid Extras and the additional features does it add to Selenium Grid?
  371. Write a simple Java program ? – 100 Java questions by Technomar starts from here
  372. Write a Java program to print an integer value?
  373. Write a Java program to print the command line arguments?
  374. Write a Java program to print the input from scanner?
  375. Write a Java program to convert from Fahrenheit to Celsius?
  376. Write a Java program to swap two numbers?
  377. Write a Java program to swap two numbers without using third variable?
  378. Write a Java program to add two numbers?
  379. Write a Java program to find the largest number?
  380. Write a Java program to demonstrate if..else statement ?
  381. Write a Java program to demonstrate nested if … else if .. statement?
  382. Write a Java program to demonstrate nested if …else statement?
  383. Write a Java program to find odd and even numbers ?
  384. Write a Java program to compare two strings?
  385. Write a Java program to demonstrate for loop ?
  386. Write a Java program to print stars using for loop, where the number of stars printed should be equal to the row number?
  387. Write a Java program to demonstrate while loop?
  388. Write a Java program to print the entered number in reverse?
  389. Write a Java program to demonstrate the usage of break statement inside while loop?
  390. Write a Java program to demonstrate the usage of break and continue statements inside while loop?
  391. Write a Java program to print the alphabets using for loop?
  392. Write a Java program to demonstrate for each loop?
  393. Write a Java program for printing the Multiplication table?
  394. Write a Java program for printing the prime numbers?
  395. Write a Java program to check whether a given number is Armstrong ?
  396. Write a Java program to print Floyd’s triangle?
  397. Write a Java program to find all the sub-string of given string?
  398. Write a Java program to print the given string in reverse?
  399. Write a Java program to check whether the given number is palindrome?
  400. Write a Java program to add two matrix?
  401. Write a Java program to multiply two matrix?
  402. Write a Java program to get the transpose of matrix?
  403. Write a Java program to compare two strings?
  404. How to find whether a String ends with a specific character or text using Java program?
  405. Write a Java program to demonstrate indexOf() ?
  406. Write a Java program to demonstrate how to replace a string with another string?
  407. Write a Java program to split the given string?
  408. Write a Java program to remove the spaces before and after the given string?
  409. Write a Java program to convert all the characters in given string to lower case?
  410. Write a Java program to demonstrate creating a method?
  411. Write a Java program to find the length of the given string?
  412. Write a Java program to concatenate the given strings?
  413. Write a Java program to replace a string?
  414. Write a Java program to demonstrate a Static block?
  415. Explain the difference between static and instance methods in Java?
  416. Write a Java program to demonstrate creating multiple classes?
  417. Write a Java program to demonstrate creating a constructor?
  418. Write a Java program to demonstrate constructor overloading?
  419. Write a Java program to demonstrate Exception Handling?
  420. Write a Java program to demonstrate throwing an exception?
  421. Write a Java program to demonstrate the advantage of finally in Exception Handling?
  422. Write a Java program to demonstrate the creation of Interface ?
  423. Write a Java program to print date and time?
  424. Write a Java program to demonstrate SQL Date?
  425. Write a Java program to demonstrate Date format?
  426. Write a Java program to demonstrate generating a random number?
  427. Write a Java program to demonstrate garbage collection?
  428. Write a Java program to get the IP Address of own machine?
  429. Write a Java program to open a notepad?
  430. Write a Java program to demonstrate Leaner Search?
  431. Write a Java program to demonstrate Binary Search?
  432. Write a Java program to demonstrate Bubble sort?
  433. Write a Java program to demonstrate connecting to a Database?
  434. Write a Java program to demonstrate inserting data into a table using JDBC?
  435. Write a Java program to demonstrate inserting an image using JDBC?
  436. Write a Java program to demonstrate executing a Procedure in JDBC?
  437. Write a Java program to check Regular Expressions?
  438. Write a Java program to create Multi-threading?
  439. Write a Java program to demonstrate joining thread?
  440. Write a Java program to write data into the text files?
  441. Write a Java program to read data from the text files?
  442. Write a Java program to convert string to integer?
  443. Write a Java program to convert integer to string?
  444. Write a Java program to convert string to long?
  445. Write a Java program to convert string to float?
  446. Write a Java program to convert string to double?
  447. Write a Java program to convert string to date?
  448. Write a Java program to demonstrate ArrayList?
  449. Write a Java program to demonstrate LinkedList?
  450. Write a Java program to demonstrate ArrayList using List interface?
  451. Write a Java program to demonstrate Hashset?
  452. Write a Java program to demonstrate LinkedHashSet?
  453. Write a Java program to demonstrate TreeSet?
  454. Write a Java program to demonstrate PriorityQueue?
  455. Write a Java program to demonstrate creating HashMap using Map interface?
  456. Write a Java program to demonstrate LinkedHashMap ?
  457. Write a Java program to demonstrate TreeMap?
  458. Write a Java program to demonstrate Hashtable?
  459. Write a Java program to demonstrate creating an Array?
  460. Write a Java program to demonstrate creating Multidimensional array?
  461. Write a Java program to demonstrate creating factorial of a number using recursion?
  462. Write a Java program to demonstrate Method Overloading?
  463. What is a Class in Java?
  464. What is the difference between heap and stack?
  465. What is the difference between instance variable and local variable?
  466. What is a Constructor and the different types of Constructors?
  467. What is the difference between break and continue statements?
  468. What is the command used in Java for exiting the system from current execution?
  469. What are the additional features in Java 8?
  470. What is the difference between for and for-each loops in Java?
  471. Can we have multiple public classes inside a single class in Java?
  472. What are the different types of inheritance in Java?
  473. What is Polymorphism, give example and how can we achieve it?
  474. Can we achieve method overloading when the two methods have only difference in return type?
  475. Give different examples for method overloading and overriding in Selenium Project?
  476. What is encapsulation in Java?
  477. What is IS-A and Has-A relationship in Java with examples?
  478. What is super and final keywords in Java and the difference between them?
  479. Explain run time polymorphism and compile time polymorphism with examples?
  480. Can final methods be overloaded?
  481. Can static methods be overloaded?
  482. Can final methods be overridden?
  483. Can static methods be overridden?
  484. Can we overload a main method in Java?
  485. Can we execute a class without a main method?
  486. What is a Package in Java?
  487. What is an Abstract Class in Java and explain with an example?
  488. What is an Interface and how it is different from Abstract Class?
  489. Can we use private and protect access modifiers inside an Interface?
  490. Can multiple inheritances supported in Interface?
  491. Give examples for Abstract class and Interface used in your Selenium Project?
  492. What is Exception and what is its base class?
  493. What is Final, Finally and Finalize?
  494. What is Garbage Collection in Java and how exactly it is done?
  495. What is the difference between throw and throws?
  496. What is Reflection and Singleton in Java?
  497. What is threading?
  498. How does multi-threading is achieved?
  499. How to initiate a thread in Java?
  500. What do you mean by thread safe?
  501. What is the difference between collection and collections?
  502. What is a Collection and what are the types of collections?
  503. What is the difference between Array and ArrayList?
  504. What is the difference between Set and HashSet?
  505. What is the difference between HashMap and HashTable?
  506. What is the difference between ArrayList and LinkedList?
  507. How do you use Map Collections in your Selenium Project (Give some examples) ?
  508. Can we have duplicate key value in HashMap?
  509. How to fetch values from a HashMap?
  510. What is the difference between String and StringBuffer?
  511. Write a Java program to verify whether a number is perfect number or not?
  512. Write a Java program for printing the Fibonacci series from 1 to 10?
  513. Write a Java program to find the greatest of three numbers?
  514. Find and print the largest two numbers from an array of given numbers?
  515. In the given String, remove the white spaces, reverse it and print only the odd position characters?
  516. Check whether a string is anagram of another string?
  517. In a given string, change few characters to upper case as asked?
  518. In a given string, print the occurrence of each character?
  519. Find the duplicate strings in a given statement and remove them?
  520. Use split method to print each word of a statement?
  521. Find and remove the duplicate characters from a given string and print ?
  522. Write a Java program to print the triangle of numbers?
  523. Write a Java program to read and write a file?
  524. Write a Java program to calculate the power of a number using a while loop?
  525. How do you select the drivers to launch a URL?
  526. Which method is used to fetch the driver?
  527. Explain the concept of Object Repository?
  528. What is the difference between findElement() and findElements(), its return type and few examples of where you have used in Selenium Projects?
  529. Which method can be used to get the text of an element?
  530. How to check which check-box from multiple check-box options is selected previously using Selenium?
  531. What is the return type of isSelected() method in Selenium?
  532. What are the different methods which can be used to verify the existence of an element on a web page?
  533. What is XPath Axes and what are the different Axes available?
  534. How to fetch an element when its attributes are changing frequently?
  535. What are the different ways to click on a button using Selenium?
  536. What are the different types of waits, write their syntax, differences and explain the example scenarios where you have used in your Selenium Projects?
  537. What are the different types of Exceptions in Selenium?
  538. How to handle Selenium WebDriver Exceptions?
  539. There are four browser windows opened and you don’t have any idea where the required element is present. What will be your approach to find that element?
  540. How do you handle an alert pop-up in Selenium?
  541. How do you retrieve the text displayed on an Alert?
  542. How do you type text into the text box on an Alert?
  543. Is Alert in Selenium an Interface or Class?
  544. How do you handle frames in Selenium?
  545. Give an example for method overloading concept that you have used in Selenium?
  546. How do you select a value from a drop-down field and what are the different methods available?
  547. When your XPath is matching more than one element, how do you handle it to locate the required element?
  548. How do you capture screen-shots in Selenium and what is the best place to have the screen-shot code?
  549. Write the code for connecting to Excel files and other operations?
  550. How do you read and write into a PDF file?
  551. What are the disadvantages of Selenium?
  552. How do you debug your automation code when it is not working as expected?
  553. What are the end methods you use for verifying whether the end result is achieved by our Selenium automation scripts?
  554. How do you clear the cookies of a browser using Selenium, before starting the execution?
  555. How do you implement collections in your framework?
  556. Give a scenario where inheritance is used in your framework?
  557. Give a scenario where interface is used in your framework? 382. Write a code using JavascriptExecutor to scroll the web page?
  558. What is the use of property file in Selenium?
  559. How do you handle multiple browsers selection in Selenium?
  560. What do you use for reporting in your Selenium Project?
  561. What are the different annotations available in TestNG and how they are different from JUnit annotations?
  562. Explain the usage of different annotations available in TestNG?
  563. How do you prioritize your test cases in Selenium?
  564. Suppose you want to skip one test method from execution, how do you skip it from execution?
  565. How Cross Browser testing is handled in Selenium?
  566. What is the hierarchy of testNG.xml tags?
  567. Explain the structure of testng.xml file?
  568. What are the different methods of Assert?
  569. How do you store your TestNG reports?
  570. How do you use Parameters in TestNG?
  571. What is the use of grouping in TestNG?
  572. What is Maven and its advantages of using it in your Selenium Project ?
  573. How do you define dependencies in your Maven Project?
  574. What is the name of maven folder which contains all the libraries?
  575. How do you enter values using Keys commands in Selenium?
  576. If a page contains 1000 images, how can you fetch 100th image?
  577. What is your approach to develop Automation Test Cases?
  578. How do you estimate your Automation Test Cases?
  579. How do you track your Automation Test Cases?
  580. How do you execute your Automation Test Cases?
  581. Have you worked in any BDD Framework?
  582. Tell me any difficulties you faced in developing automation scripts? Can you give any examples for any complex scenarios handled?
  583. What is Jenkins?
  584. What are the commands used in Jenkins?
  585. How do you setup Maven Project in Jenkins?
  586. How do you start Jenkins?
  587. What is the difference between List and Set?
  588. How to switch to another window using Selenium?
  589. How will you ensure that the page has been loaded completely?
  590. What are the different classes which implement WebDriver?
  591. What is the purpose of using Firebug?
  592. What is the main component of Selenium?
  593. What is the disadvantage of Absolute XPath and why is Relative XPath recommended over it?
  594. What is the concept that makes XPath Expressions powerful out of all the locators?
  595. Why CSS Selectors have higher priority over XPath Expressions?
  596. What are the names of add-ons which can auto generate the XPath Expressions and CSS Selectors?
  597. Write a Java program for printing the even numbers between 1 and 100 using for loop?
  598. Write a Java program to find the sum of first 100 numbers using for loop?
  599. Write a for loop which prints numbers from 1 to 100. But if the number is divisible by 5, then it should print ‘divisible by 5 followed by that number’?
  600. What is the parent or base class of all the classes in Java?
  601. Is Java a pure 100% Object Oriented Programming language?
  602. What is the difference in between Primitive and Non-Primitive Data types in Java?
  603. Why Strings are immutable in Java?
  604. Write a Java program for accessing all the elements of the two dimensional array int[][] a = {{5,2,9},{4,6,8}}; using for loop?
  605. How to assign different types of values say integer, character, string, decimal and boolean into the same array?
  606. What is the disadvantage of array?
  607. What is the difference between equals() and == operator?
  608. What is the purpose of using Wrapper classes in Java?
  609. What is the purpose of using Constructors in Java?
  610. How Constructors are different from Methods in Java?
  611. What is the purpose of using ‘this’ keyword in Java?
  612. What is Overloading in Java?
  613. What is the purpose of using Packages in Java?
  614. What is the keyword used by a Java class to inherit the properties say variables and methods of another Class?
  615. How to access the variables and methods of another Class in Java?
  616. What is Overriding in Java?
  617. Is Overriding applicable for Constructors in Java?
  618. What are the different modifiers in Java?
  619. What is the difference between default and protected access modifiers in Java?
  620. What is the difference between static and instance variable in Java?
  621. What is the difference between static and non-static methods in Java?
  622. What happens when we specify the final non-access modifier with variables and methods in Java?
  623. What is the difference between abstract classes and interfaces in Java?
  624. What is the keyword used for inheriting the interfaces in Java?
  625. How to handle exceptions in Java?
  626. What is the difference between checked and unchecked exceptions in Java?
  627. Write the code from reading the text from the file (having ten lines of text) using file handling mechanism and while loop?
  628. What is the disadvantage of Arrays and how to overcome it in Java?
  629. What is the difference between ArrayList and HashSet in Java ?
  630. What is the relationship between Iterator interface and iterator() method in Java?
  631. What are the predefined methods of HashMap, which are used for adding the value and retrieving the value in Java?
  632. What will this Java code print: String x = “Latest version”; String y = “of Selenium”; int z = 3; System.out.println(“We are learning Selenium”+” and the “+x+” “+y+” is “+z); ?
  633. Write a Java Program to print the below output: * 1 * 12 * 123 * 1234 * 12345 * 123456 * 1234567
  634. Write a Java program to create an integer array int[] a = {9,3,6,8,4,7} and print the elements of the array in reverse?
  635. Write a Java program to print alternative elements in a String array String[] a = {“One”,”Two”,”Three”,”Four”} ?
  636. Write a Java program to find the greatest number in an integer array int[] a = {9,3,6,4,8,5} ?
  637. Write a Java program to find the least number in an integer array int[] a = {9,3,6,4,8,5} ?
  638. Is Java case sensitive?
  639. Which keyword is used for defining / creating a Class in Java?
  640. What is the method from which Java Programs starts execution?
  641. Give some examples for compile time errors in Java Programs?
  642. What is the difference between print and println statements in Java?
  643. What are the different types of comments in Java?
  644. What are the different things required for storing data in Java?
  645. What is the different data types in Java and what is their purpose?
  646. Is String a primitive data type?
  647. What are the different types of Operators in Java?
  648. What are the different flow control structures in Java?
  649. What is the difference between while and do..while loop in Java?
  650. Can we call the same method multiple times in Java?
  651. What is the keyword to be used in Java while declaring methods, when the method don’t have anything to return?
  652. What are the different types of Arrays in Java?
  653. What is the predefined variable of Arrays, which can be used to find the size of the arrays?
  654. Provide an example for using for loop with single dimensional arrays?
  655. Provide an example for using for-each loop with single dimensional arrays?
  656. What is Customized XPath?
  657. What is BDD and explain its use?
  658. What is the folder structure of your framework and explain each folder?
  659. How to create a job in Jenkins?
  660. Explain the life cycle of Maven?
  661. Explain different Git commands?
  662. How to close a Database (DB) connection ?
  663. How to handle the dynamic tables in Selenium?
  664. How to handle multiple frames in Selenium?
  665. What is Abstraction in Java?
  666. How to define elements using @FindBy annotation ?
  667. How to set the Firefox Profile in Selenium WebDriver?
  668. How do you connect to a Database (DB) in your framework?
  669. How to run the test scripts in Jenkins?
  670. How many ways we can define a String in Java?
  671. What is the difference between super and this keyword in Java?
  672. What is the difference between final and finally keywords?
  673. Can you access the private method from outside the class?
  674. How to convert Array to ArrayList and ArrayList to Array?
  675. Why static needs to be specified before variables and classes? What actually is its real time purpose/advantage?
  676. Why we have to use the synchronized block in Java?
  677. What is the difference between HashSet and TreeSet?
  678. What is the difference between public and private access modifier?
  679. What is Page Chaining Model?
  680. What is the difference between String array and Char array?
  681. Is null a keyword in Java?
  682. What are class level variables in Java?
  683. What is the default value of a boolean variable in Java?
  684. What is the default value of an integer variable in Java?
  685. What is the default value of an object in Java?
  686. What is final?
  687. How to read data from the XML files?
  688. What is JDBC and how it can be used to connect to Database?
  689. Class.forName(X). What will you write in place of X?
  690. If we write FileInputStream statements in try block, what are the statements we will write in finally block?
  691. Explain about typecasting?
  692. What is a Data Provider and what is its return type?
  693. What is the difference between JUnit and TestNG?
  694. How to handle AJAX applications in WebDriver?
  695. How to capture the bitmaps in Selenium?
  696. How many annotations are there in Testng and what are they?
  697. How to create the reusable methods for reading the data from the Excel files?
  698. How to create the reusable methods for reading the data from the XML files?
  699. What is the difference between include and exclude in TestNG?
  700. How to execute the single selected method in TestNG?
  701. How the packages and classes are structured in TestNG.xml?
  702. What are assertions and why we go for them in TestNG?
  703. Tell me a login page script in TestNG?
  704. What is the difference between @Parameters and @DataProviders in TestNG?
  705. What problems you have faced while working with TestNG?
  706. How to create Suites in TestNG?
  707. How to prioritize the tests in TestNG at Class level and Suite level?
  708. Can Selenium automate Client Server applications?
  709. What are the limitations of Selenium WebDriver?
  710. Tell me about the Selenium WebDriver architecture?
  711. How to identify the web elements?
  712. When do you go for an XPath?
  713. How to execute the tests on Firefox Browser in Selenium?
  714. What is the difference between id and name?
  715. How to handle dynamic web elements in Selenium?
  716. What is the default timeout of Selenium WebDriver?
  717. When do we use implicit and explicit waits in Selenium?
  718. How to select a date in a Calendar on a web page using Selenium?
  719. How to execute the Selenium scripts in Eclipse IDE from command prompt using ANT?
  720. How to execute the Selenium scripts on different browsers?
  721. What is the purpose of isDisplayed() function in Selenium WebDriver?
  722. What is the difference between isDisplayed() and isEnabled() functions in Selenium WebDriver?
  723. Can you test flash images in Selenium?
  724. How to verify whether an object is present on the multiple pages?
  725. How to select a third value from a drop-down field?
  726. How to get columns from a table?
  727. How many scripts are you writing and executing per a day?
  728. Which driver implementation will allow headless mode?
  729. Which reporting mechanism you have used in your Selenium projects?
  730. Why did you choose Selenium in your project, when there are so many tools?
  731. What is the difference between Java and JavaScript?
  732. How to send emails from official mail id?
  733. How do you make use of JSON files in Selenium Grid?
  734. How to pause a test execution for 5 seconds at a specific point ?
  735. Explain project, roles & Experience summary?
  736. What are the advantages of using TestNG?
  737. Can you arrange the below testng.xml tags from parent to child?
    1. <test>
    2. <suite>
    3. <class>
    4. <methods>
    5. <classes>
  738. What is the importance of testng.xml file?
  739. What is TestNG Assert and list out common TestNG Assertions?
  740. What is Soft Assert in TestNG?
  741. What is Hard Assert in TestNG?
  742. How to create Group of Groups in TestNG?
  743. How to exclude a particular test method from a test case execution using TestNG?
  744. How to exclude a particular group from a test case execution using TestNG?
  745. How to disable a test case in TestNG?
  746. How to ignore a test case in TestNG?
  747. What are the different ways to produce reports for TestNG results?
  748. How to write regular expressions in testng.xml file to search @Test methods containing “smoke” keyword?
  749. What is the time unit we specify in test suites and test cases?
  750. List out various ways in which TestNG can be invoked?
  751. How to run TestNG using command prompt?
  752. What is the use of @Test(invocationCount=x)?
  753. What is the use of @Test(threadPoolSize=x)?
  754. What does the test timeout mean in TestNG?
  755. Write a program to check whether a given number is a Prime number?
  756. Find the factorial of a given number in non recursive way?
  757. How to reverse a String?
  758. How to remove Junk or special characters in a String?
  759. How to reverse an integer?
  760. How to find missing number in an Array?
  761. How to find duplicate elements in a Java Array?
  762. How to find the smallest and largest numbers in a Java Array?
  763. Explain String manipulation in Java?
  764. Write a Java program to swap two strings without using temp or third variable?
  765. Explain stack and heap in Java for memory management?
  766. Explain SingletonDesign pattern in Java?
  767. How to achieve SingletonDesign in Selenium WebDriver?
  768. What are your roles and responsibilities as part of automation in your project?
  769. What is an interface and where you have used in your Framework?
  770. How to achieve multiple inheritance in Java?
  771. How to select an option in list box?
  772. What is an iframe and how to handle it using Selenium WebDriver?
  773. How do you count the total number of rows in a web table? 600. How to select a checkbox present in a grid?
  774. Write an xpath to find all the hyperlinks on a web page?
  775. What are the different XPath types and which XPath type you have used in your projects?
  776. An element has an id “bng_123” but its number is changing. How to handle it?
  777. How to get text from hidden elements?
  778. What is timeout in grid?
  779. What do you mean by max instance and max sessions?
  780. Is it mandatory to have the same name for Class name and Java file ?
  781. What is the difference between ArrayList and Vector?
  782. How do you write custom class which is immutable?
  783. Create a custom class which contains an interface in it and custom class should be responsible for performing operations. Which type of interface will you use to create such a custom class?
  784. If there is a element which contains id attribute, that id is split by two parts by ‘_’ (underscore), first part is constant and second part is changing. How do you find that element using id 613. What is browser time out in grid
  785. Suppose I want to check a particular exception in TestNG. How will you check?
  786. What are the different access modifiers in Java and explain each of them?
  787. Draw the architecture of a framework implementing Page Object Model and its uses?
  788. Suppose you have amount field which accepts 0 to 1000, write manual and automation test cases for that field.
  789. Explain the automation process followed in your company?
  790. What is the difference between Maven and TestNG?
  791. What are important Classes in WebDriver?
  792. What is Sikuli, its purpose and explain more about it?
  793. What is Robot Class and explain more about it?
  794. What is AutoIt and explain more about it?
  795. What is the difference between AutoIt, Sikuli and Robot Class?
  796. Which is best in AutoIt, Sikuli and Robot Class along with reasons?
  797. Suppose there is a window popup which accepts username and password, and I use AutoIt to automate it. While the test is running I open note pad parallely at the time of autoit code execution. Will the username and password enter into the window popup or the notepad?
  798. Can we use AutoIt on other operating systems?
  799. Do you know any third party reporting other than testng?
  800. Can’t we execute tests parallely without using Selenium Grid?
  801. What is the difference between TestNG and Grid?
  802. How do you execute tests in Selenium Grid?
  803. How do you attach screenshot to test, which tool is using for screenshot attachment?
  804. If you execute the scenarios in your project multiple times, will the reports override? If they override, how will you take backup of previous test report?
  805. How will you read CSV file and write some sample code?
  806. Which excel files have you used in your company xls or xlsx for automation needs?
  807. What classes you will use for reading the PDF files?
  808. What is the use of pdfstripper class?
  809. What is deferred state?
  810. How many test scripts you can write per day?
  811. Which framework is used in your project?
  812. How will you send numerics in sendKeys method?
  813. Suppose a test case is given to you. How will you decide whether to automate or not?
  814. Suppose I clicked on 4 links in a page, 4 new windows got opened. How to switch to 4th window from main window?
  815. What is default content?
  816. How do you rate yourself on scale of 5 in java?
  817. How do you rate yourself on scale of 5 in selenium?
  818. What is verbose?
  819. What is thread count?
  820. When a class implements two interfaces having a common method, which interface method does the class implement?
  821. What is the flow of try, catch and finally blocks?
  822. What is finally in Java?
  823. How many values will a method return in Java?
  824. What is abstract in Java?
  825. Which design patterns have you used to develop frameworks?
  826. try block has exit method, catch block has exception and finally block is returning an int value. Can you explain the flow of execution?
  827. Have you ever come across conflict in code. How do you resolve?
  828. Can a constructor be private?
  829. Assert is an abstract or static method?
  830. What is instance block at class level and method level?
  831. What is the difference between a Class and Interface?
  832. Can we have multiple catch blocks in try catch statements in Java?
  833. Can we have multiple try blocks in try catch statements in Java?
  834. Can we have multiple finally blocks in try catch statements in Java?
  835. What is mutable and immutable?
  836. What are the types of Synchronization in Java?
  837. What are the types of Exceptions in Java?
  838. Write a code to click on a button which is inside a nested iframe?
  839. How to select a check box option which is inside a web table?
  840. There are 3 classes say A,B and C in your project. How to access the methods of B and C from A Class?
  841. What type of Jenkins server are you using in your company?
  842. What is the return type of driver.getWindowHandles() in Selenium?
  843. How do you achieve dynamic Polymorphism?
  844. What is nested Class?
  845. How will you call a protected method in a nested class?
  846. In a web page, how will you ensure that the page has been loaded completely?
  847. What is the difference between build and perform methods in Actions Class?
  848. What is the difference between @BeforeMethod and @BeforeTest method?
  849. How will you display the characters count in a String “Steve Jobs” by ignoring the spaces in between?
  850. What is a constructor and when will you use this and super in a constructor?
  851. If you want to call a constructor from parent class, what will you do?
  852. How will you run your tests using Data Driven Framework?
  853. What are static variables and methods?
  854. How will you make a build using Jenkins?
  855. How will you install ReportNG in your project?
  856. How will you retrieve the value of a particular cell in a web table?
  857. How will you handle dynamic elements using XPath?
  858. What are the Selenium tools and Testing frameworks that you have used in your project?
  859. What is the different Operating Systems that you have automated your Selenium scripts on?
  860. What is the different application domains that you have automated so far?
  861. What are the major challenges in Functional Test Automation?
  862. What are the difficulties you have faced in Object Identification?
  863. Have you conducted Data Driven Testing in any of your automation projects?
  864. Have you conducted Batch Testing in any of your automation projects?
  865. Have you conducted Cross Browser Testing in any of your automation projects?
  866. Have you handled duplicate elements on the web pages in your automation projects?
  867. How many test cases you automated in any of your Project/Module?
  868. How you organized your Test Automation resources in your Project ?
  869. Did you use any build management tools in your project?
  870. How you handled errors in your Test Scripts?
  871. Did you create any reusable components while automation any of your projects?
  872. Did you find any test scenarios that cannot be automated in your projects using Selenium?
  873. How to execute multiple Java programs at a time?
  874. How to conduct parallel test execution?
  875. Did you involve in Selenium Test Automation environment setup?
  876. What is a class and object?
  877. How to call the function of a Class without creating an object?
  878. What is HashMap? 708. How to synchronize Collection classes?
  879. Why main() is declared as static?
  880. What is the use of sleep() ?
  881. How to find invisible elements in a web page? Write some sample code?
  882. How to generate logs?
  883. How to handle dynamic changing ids or elements?
  884. What are the different methods you have seen in XPath?
  885. How to generate dynamic XPath?
  886. How to handle multiple frames in Selenium?
  887. Why Automation?
  888. When to start Automation?
  889. How to identify which scenarios needs to be Automated?
  890. What is Select Class in Selenium WebDriver and how to use it?
  891. What is Alert interface and how to use it?
  892. What is click() command in Selenium WebDriver?
  893. What is sendKeys() command in Selenium WebDriver?
  894. How to read data from properties file in Selenium?
  895. Explain your automation framework architecture?
  896. Have you conducted cross browser testing in a parallel way using TestNG?
  897. What is parameterization in TestNG?
  898. How to handle internationalization using Selenium WebDriver?
  899. What are the defects you have found while automating your application?
  900. Write a code to open application in Firefox browser?
  901. What is the difference between Call by Value and Call by Reference?
  902. How to find the length of the String without using length function?
  903. How to find out the part of the string from a string?
  904. What is data binding (Early and late binding)?
  905. Write a Java program to find find the biggest number among 1,2,3,4,5,65,76,5,,4,33,4,34,232,3,2323?
  906. Explain Automation Life Cycle (ATLC) ?
  907. What are the things you have stored in PageFactory and why?
  908. Have you used any constructor in Selenium?
  909. How do you handle untrusted SSL certificate in Selenium WebDriver?
  910. How to verify a particular image out of many images on a web page and verify its size using Selenium WebDriver?
  911. How do you find out Active elements using Selenium WebDriver?
  912. What is String class and its methods?
  913. What is the difference between Selenium Grid and Selenium WebDriver?
  914. How would you save a cookie value in WebDriver? 745. How do you locate a button which is present on a web page using span class, when it doesn’t have an Id, Class or anything? 746. How will you invoke a firefox browser?
  915. What will be the logic behind fetching the data from a data provider and inserting it on UI?
  916. How will you mark as method as a data provider using TestNG annotation?
  917. How does method overriding defers from abstraction and inheritance?
  918. Why do we go for Page Object Model (POM) and what is its purpose?
  919. What is the difference between StringBuffer and StringBuilder?
  920. How will you configure Jenkins?
  921. How will you configure ANT?
  922. Why do we go for Apache POI API? What is its purpose?
  923. Write a script for a login page which is being used at your organization?
  924. Why do we use generics for getting a list of multiple elements?
  925. In what way, method overriding in polymorphism and inheritance differs with each other?
  926. What is the flow of fetching data from excel using Apache POI?
  927. Why do we provide “//” in java while fetching a path of excel?
  928. What are the types of exceptions which will appear while finding elements?
  929. What is an object array and why do we use it for data provider?
  930. What is the syntax of defining a data provider in a separate class?
  931. How will you open the URL using IE Browser in Selenium?
  932. What is up casting and down casting in Java? How will you use it in Selenium with an example?
  933. What is reflection in Java?
  934. What are abstract classes and methods in Java?
  935. What have you done to improve the performance of selenium framework?
  936. What are the parameters related to POM?
  937. How to automate a scroll bar?
  938. Write a Java code to copy the emp id from the first excel sheet having emp name and emp id, and paste copied emp name into another excel sheet have emp name only based on the emp name?
  939. Coding, if you are writing selenium automation code for different browsers?
  940. How do we switch from one page to another page in POM?
  941. How to parse XML files in your project?
  942. Where are you using Jenkins in your project?
  943. How do you use all your scripts locally?
  944. Where do you store all your reports?
  945. What will you do when you have more number of lines of code having repeated code?
  946. I want to take one test case report from all the executed test cases. How can we get it without using TestNG?
  947. What are the different controllers you automated in a web page?
  948. How to select a random record from a record of 1000 values?
  949. Suppose you have 3000 test data stored in an excel file? Can you use excel in this case and what are its drawbacks?
  950. Where we use HashMap in real time?
  951. What are the step for checking the JDBC connection?
  952. I have location in local system like x=C:// , y=//selenium//image.png, can we concatenate these two variables x,y in order to form the location path?
  953. In Selenium project, we use hierarchy like interface, followed by abstract class, followed by a class. Can’t we directly use interface followed by a class?
  954. Can we use for loop in keyword driven framework?
  955. What if we don’t have locators information? Is there any method to automate?
  956. What are the basic plugins you used in Jenkins?
  957. How do you manage reports in Jenkins?
  958. In a page, if we have 3 apply buttons (1st button on top, 2nd button in middle and 3rd button on the bottom). How will you click on the middle button?
  959. In how many ways, can I take keyboard inputs?
  960. Can we have main method constructor in interface?
  961. What is the command line to run TestNG batch file in command prompt?
  962. Which command retrieves the text on a web element?
  963. How do you manage the source code of your automation project?
  964. In Maven, from where the jar files will get downloaded from?
  965. In Maven, do we have to manually download and configure/update the required jar files?
  966. Why webdriver is an interface not a class? What could be the problems we face if it is a Class in Selenium?
  967. How one would do dynamic content testing using Selenium WebDriver?
  968. How one would do Ajax content testing using Selenium WebDriver?
  969. If you have more than one object repository in your project, how will your script pickup the correct object repository?
  970. Write a code to find the occurrence of sub string say “hello” in the given String say “helloslkhellodjladfjhello” ?
  971. How to run only skipped test cases in Selenium?
  972. . Suppose 400 test cases are running and after 150 test cases got executed the system got crashed or network was gone or application got crashed. How to run only the test cases which are not executed?
  973. Suppose in selenium grid, there are 4 nodes connected and the test execution started in grid parallelly. In middle of the execution one of the nodes got disconnected. What happens with the execution?
  974. Suppose in selenium grid, if you are doing parallel testing in 3 browsers. How many reports will your framework generate and how do you segregate each browser execution results
  975. There are 300 test cases, I want to execute test cases in some custom order, how to change the order of execution without doing changes in testng.XML and in code(.class files). If we can do, tell the logic and if we cannot do, justify with reason?
  976. Is default polling frequency 250 ms applies to implicit wait or explicit wait or for both types of wait? 810. If implicit wait is 10 sec and element is found in 5 sec, will driver move to execute next statement after 5 sec or it will wait for complete 10 sec then move?
  977. If an explicit wait is 10 sec and the condition is met in 5 sec, will driver move to execute next statement after 5 sec or it will wait for complete 10 sec then move?
  978. How to switch from frame to main window? With syntax.
  979. There is a submit button in page it has id property. By using “id” we got “element not found exception”, how will you handle this situation? What might be the problem in this case?
  980. If submit button is contained in one of 3 frames in page, how will you handle this case?
  981. If element is loaded by taking much time, how to handle this situation in selenium?
  982. What is the problem with Thread.Sleep in code?
  983. When we execute test cases in grid where results will be stored in node or hub?
  984. Manually you opened a Firefox browser window with Gmail login, now with selenium you opened a Firefox browser window with Facebook login, what happens when we use quit method? Will it closes all windows including Gmail one?
  985. Is it possible to pass test data through testng.xml file, if yes how?
  986. How to run specific kind of Test cases using TestNG?
  987. What are all interfaces available in selenium?
  988. Can we execute test cases in order without using TestNG?
  989. There are two methods in same class with same name with different arguments and different access modifiers like public void m1(int a){} private void m1(string b){} Is it overloading or not?
  990. Is multilevel inheritance is possible in java? Give reason.
  991. There are 10 pages in same window, an image is present in any page out of ten pages in same window. How will you validate this scenario?
  992. How to check whether an image is loaded correctly or not in page?
  993. Is it possible to compare two images with Sikuli?
  994. Write a code for multiple handling windows?
  995. What is Automation and Manual Testing?
  996. How to generate user defined exceptions, write syntax?
  997. What is an Absolute XPath? Write its syntax?
  998. What is a Relative XPath? Write its syntax?
  999. What are the WebDriver supported Mobile Testing Drivers do you know?
  1000. What is the difference between “type” and “typeAndWait” command?
  1001. How to execute JavaScript in Selenium?
  1002. What is the testng.xml file used for?
  1003. How could AJAX controls be handled in WebDriver?
  1004. Can we use Selenium RC for tests driving on two different browsers on one operating system without Selenium Grid?
  1005. How would you test your own element locator?
  1006. What API is required for Database Testing in Selenium WebDriver?
  1007. What Java API is required for generating PDF reports?
  1008. Explain why to choose Python over Java in Selenium.
  1009. How can you run Selenium Server other than the default port 4444?
  1010. Explain how you can capture server side log Selenium Server?
  1011. What is a framework and what are the frameworks available in RC?
  1012. How to call keywords in scripts?
  1013. What is reflection API? Why we use this concept?
  1014. What is your roll in framework?
  1015. Is Polymorphism used? explain where?
  1016. Can you write a script on emails scenarios?
  1017. Write code for gmail login in Selenium WebDriver?
  1018. If an object is changing after every build ,how can u handle it through coding?
  1019. I want to execute one FEATURE 50% and then want to execute other FEATURE fully, how will u do it?
  1020. What are the issues you have faced in the AUTOMATION FRAMEWORK?
  1021. Want to execute particular module ,what will be your approach?
  1022. On what platform JENKINS will work?
  1023. How to use JENKINS to execute a particular module?
  1024. How the testng class’s execution happen?
  1025. What is the advantage of using locators like ID ,NAME over XPATH?
  1026. How you are executing the application on different platforms(OS)?
  1027. How do u handle dynamic elements without using xpath (with example)?
  1028. What are the different types of driver implementation?
  1029. Program to display sysdate and time in text file (using file handling)?
  1030. What is Check-in & check-out revert?
  1031. Which repository you have used to store the test scripts?
  1032. How to work with web list @ radio button in web driver?
  1033. Why you have chosen a particular framework in your project?
  1034. Write a selenium code that u wrote in your current project?
  1035. Other way you can select element other than select class?
  1036. What are ajax elements? How u can handle them?
  1037. What is your contribution in preparation of your framework?
  1038. Give me one invalid scenario in your project apart from usual requirement?
  1039. If an option given to change a framework, what is your approach and why ?
  1040. Give a scenario where finally block doesn’t execute?
  1041. What is the use of xml file in testng ?
  1042. Given a scenario that 5 test cases are there I need to execute first and last 3 (means 2 one should not be executed) ? How u make a changes in testng xml file?
  1043. What is a null pointer exception ? Is it checked or not?
  1044. Explain how will automate drop down list ? How will you get size ? and text present in it?
  1045. Give me another way u can send values other than sendkeys?
  1046. If an option is given to select manual/automation testing. Which one you will select and why?
  1047. Explain about your selenium profile?
  1048. What is regular expression? Where will we use it?
  1049. How do you call function in java?
  1050. How do you start selenium server?
  1051. How do you download and use selenium?
  1052. How do you differentiate check box if more than one check box is existed in your application?
  1053. How to get the href of a link?
  1054. How to get the source of image?
  1055. Write a program to count the number of links in a page?
  1056. How to check all check-boxes in a page?
  1057. What is the output of the below code? driver.findElements(By.tagName(“img”));?
  1058. How do you handle JavaScript alert/confirmation popup?
  1059. How do you launch IE?
  1060. How do you launch Chrome browser?
  1061. How do you click on a menu item in a drop down menu?
  1062. How do you work with page onload authentication popup?
  1063. How do you handle untrusted certificates?
  1064. Write the code for Reading and Writing to Excel through Selenium?
  1065. How to get typed text from a textbox?
  1066. Can you explain the Framework flow with a diagram?
  1067. How do you accommodate project specific methods in your framework?
  1068. How is the failure handled in your framework?
  1069. What kind of reports are generated by your framework?
  1070. . Which is the default port on which selenium RC runs?
  1071. When to use web driver backed selenium?
  1072. How to invoke an application in webdriver?
  1073. Where to download selenium webdriver?
  1074. Can Selenium test an application on iPhone’s Mobile Safari browser?
  1075. Can Selenium test an application on Android browser?
  1076. What is the use of following-sibling ?
  1077. What is StaleElementException? When does it occur? How do you handle it?
  1078. How to get the number of frames on a page?
  1079. How to verify that an element is not present on a page?
  1080. How do you verify that the given list of numbers on a web page is sorted in ascending order?
  1081. How to verify the presence of the success message on a page?
  1082. How to verify whether the background color of a paragraph is green or not?
  1083. How to verify that the image changes on mouse hover?
  1084. How to login into Facebook using webdriver?
  1085. How do you check that the pagination on google search page is working fine or not?
  1086. How to insert a comment in selenium IDE?
  1087. How do you handle the secured connection error in HTTPS?
  1088. How to handle the dynamic alerts which don’t always appear?
  1089. How to verify whether the size of a div is 320px or not?
  1090. How to check the cursor type changes on hovering on a link?
  1091. How to verify that the font-size of a text is 12px?
  1092. How to verify that an image is to the right of text?
  1093. How to verify the presence of a horizontal line on a page?
  1094. How to change the URL on a webpage using selenium web driver?
  1095. How to get the CSS attribute of a web element using web driver?
  1096. How to verify the presence of tooltips on a web page?
  1097. Can you handle flash using web driver?
  1098. How to enter :(colon using web driver) ?
  1099. How to check whether on click of an element ,a new tab will be opened before clicking on that element?
  1100. What is the difference between dragAndDrop() and dragAndDropBy()?
  1101. How to type text in a new line inside a text area?
  1102. What is the use of getPageSource()?
  1103. We have 65,000 URLs which we release 3 times a day. How will you test using selenium ?
  1104. How to launch Default browser through WebDriver?
  1105. How to add the screenshot to result window?
  1106. How to enter date into date field using JavaScript in WebDriver?
  1107. How to take complete screen shot of the application?
  1108. How to take the screen shot of required element?
  1109. Suppose we have multiple tabs like in TestNG(Failed Tests,Run Last-test etc..). How will you handle it?
  1110. In a drop-down we have many options out of which i want to write xpath for particular option. How will you write?
  1111. We have two similar hidden elements with same attribute, how can you write xpath?
  1112. Using AND,OR operation, how can you write xpath for dynamic elements?
  1113. I have a server message(Report generated successfully) but i need only report. How you will write the script? 948. Why you call Eclipse an IDE? What actually is meant by IDE?
  1114. What is bitmap Comparison? Why we use it in Selenium WebDriver?
  1115. How to get the partial server message using Selenium WebDriver?
  1116. want to scroll the web page by (30%,80%) using Selenium WebDriver?
  1117. When do we go for automation?
  1118. Want to take screenshot in a webpage(Full or Part of it in a page)?
  1119. I have 50 testcases. Will you automate all the testcases?
  1120. What are the different types of popups and the ways to automate them?
  1121. What is the difference between Xpather and Xpath Checker?
  1122. How to specify some delay in loading WebPage?
  1123. How to handle Confirmation Pop-Up?
  1124. an you inspect an WebElement with FireBug if the Browser is opened by WebDriver?
  1125. In which type of Collection duplicate values are not allowed?
  1126. How to retrieve the data from XML for login page?write a script?
  1127. I have 50 test cases, out of which I need to run only 1 to 10 testcases. How do u handle?
  1128. Write the code for retrieving data from database for login Page,where login page consists of Email-id textbox,Password textbox,Login & Reset Button.If password is wrong should reset,else should get login?
  1129. How to automate videos?
  1130. How to run Selenium 1.0 tests in webdriver?
  1131. Which version of selenium IDE supports webdriver?
  1132. Which of Selenium IDE commands not supported in webdriver?
  1133. Handling the Dynamic Check boxes inside a table?
  1134. Selenium code to reboot the system?
  1135. Tell me some of the tools name which is used to store the script in common place?
  1136. How do you integrate selenium webdriver and java?
  1137. How to get delimiters(@,”:&#) from text file?
  1138. How can u find rows from a web table? what is the method you used?
  1139. What is Type Casting? Give example?
  1140. How do u configure only Required Testcases for running the TestNG suit in XML?
  1141. What is the difference between Alert and Pop-up?
  1142. Excel sheet contains 5 rows with id name and attribute.Delete the first row which contains previous data?
  1143. If I have a web page called ESPN in that I have the name and ranking of cricketers. How u will check the ranking and name of cricketers in database are same or not?
  1144. Is framework needed? y? can we run scripts with out using frame work yes or no?
  1145. What is an assertion? What is its drawback? How to overcome it?
  1146. Where we can store xpath or other locator value in Selenium Projects?
  1147. What is difference between @AfterMethod and @AfterTest?
  1148. Explain about Diamond problem in Java?
  1149. Does manual bring more ROI or automation brings more ROI?
  1150. What are primitive data types in Java?
  1151. Why String is non primitive?
  1152. What is a headless browser?
  1153. What is the best way to locate a web element if there is no unique XPath?
  1154. Do you run test cases in parallel with TestNG? If yes how many threads and does it cause any problem?
  1155. What is the most common locator you use in your project?
  1156. Have you ever done profiling of a web page?
  1157. How frequently do you use Thread.Sleep()?
  1158. Can we create an object for an interface?
  1159. How does Selenium interact with the Web browser?
  1160. Can you make the constructor of a class static?
  1161. How do you maintain your test scripts and how frequently you have to modify them? 997. Comparable vs comparator?
  1162. Any idea or experience with Continuous Integration tool?
  1163. Difference between Instantiate and Initialize in Java?
  1164. Difference between == and =.?
  1165. re all methods in an abstract class, abstract?
  1166. Can we create an object for an abstract class?
  1167. Can we write webdriver driver = new webdriver(); ?
  1168. What are the different plugins used for Maven? And it’s use?
  1169. How do you manage re-running only failed test cases?
  1170. How to make TestNG.xml at run-time?
  1171. What’s Singleton class?
  1172. Can we have Finally block without Try & Catch blocks?
  1173. How to execute Java program from the command prompt?
  1174. What’s the difference between plug-ins and dependencies?
  1175. Java Program: Change a string such that first character is upper case, second is lower case and so on?
  1176. Java Program: To find duplicates between two lists?
  1177. Write a program to compare two Hashmap for equality?
  1178. Java Program: Sort a string which has only 0, 1, 2 in it. Sample input: 010201010100222112 | Sample output: 000000011111122222?
  1179. Java Program: String s = “sub53od73th”; Eliminate the numbers alone. Print the Alphabets.
  1180. Java program: Reverse the words in the sentence?
  1181. Java program: Find the count of each element in a two dimensional matrix?
  1182. Java Program: Find duplicate elements in an array of numbers?
  1183. Write a program to find all options from a drop-down & then Sort them?
  1184. Write a program to read/write data from a Property file?
  1185. Java Program: Write 0 and 1 separately from 10011101101 and find the frequency of each?
  1186. Java Program: To print the frequency of words in a paragraph?
  1187. Write a dynamic XPath to locate a table’s 2nd row 3rd column data.
  1188. What’s the difference between a Maven project and a Java project?
  1189. How to integrate your test with Jenkins?
  1190. Any example or practical usage of Run time polymorphism?
  1191. What’s TestNG Listener Class & why do we use it?
  1192. How to click a button without using click() and without using CSS & XPath selectors?
  1193. How do you check whether the field is editable or not in selenium?
  1194. Explain about testNG listeners?
  1195. What are the different tools you use in your project?
  1196. How will you execute only few test cases in a suite?
  1197. What are the different methods available in selenium webdriver?
  1198. How will you get the odd and even numbers in a given array? Write the program?
  1199. How will you get the min and maximum number from an given array? Write a program?
  1200. How will you get the browser values from testng?
  1201. What is the version control tool you are using and tell me the steps what you follow and how will you resolve conflicts?
  1202. What is Maven and it’s use and the different phases of Maven?
  1203. What will you do if there are failures in your suite execution and what is your approach?
  1204. Write a program to reverse a string without using inbuilt functions?
  1205. Write a program to find out the repeated character in a string?
  1206. How to find out the duplicates in a array?
  1207. How webdriver works?
  1208. What is By class?
  1209. What is the method to convert string to integer?
  1210. What is the method to convert integer to string?
  1211. What are static and non static methods and why will you create static and non static methods? 1048. Why we go for interface why not abstract class?
  1212. Why we use public static void for main?
  1213. What is the difference between error and exception?
  1214. Why do you get NoSuchElementException ?
  1215. Is Java a value based or reference based?
  1216. Write syntax for switching to default content after switching to any frame?
  1217. Write Xpath by using contains?
  1218. Why do we use // for writing xpath?
  1219. Where do you use OOPS concepts in Selenium , explain one by one?
  1220. Where do you keep the test data ?
  1221. Write syntax for actions class?
  1222. Write syntax for drag & drop?
  1223. Explain collections?
  1224. Write a program to delete duplicate values in string array?
  1225. Through Actions class can you pass the test data like instead of sendkeys?
  1226. What is Jenkins & how do you configure & how do you get mail once tests are completed?
  1227. What is the difference between SVN & GIT?
  1228. How do you maintain source code in GIT?
  1229. Suppose there are 10 classes & I want to push only 5 classes, how do you do that?
  1230. How do you deal when you get conflicts?
  1231. What are ancestors & siblings tell me the syntax?
  1232. List two different annotations present in TestNG but not in JUnit?
  1233. Which is better Xpath and CSS? Why? Based on security which is better?
  1234. When should I use Selenium IDE?
  1235. What is Same origin policy and how it can be handled?
  1236. Explain some disadvantages to manual software testing?
  1237. Is automation testing a complete replacement for manual software testing?
  1238. Does automation testing have any disadvantages?
  1239. What are the differences between open source tools, vendor tools, and in-house tools?
  1240. How do you choose which automation tool is best for your specific scenario?
  1241. What are the different types of scripting techniques for automation testing?
  1242. How can we get the font size, font color, font text used for the particular text on the web page use in the selenium? 1080. How to clear cache using selenium?
  1243. How to install add on the Firefox using Selenium WebDriver?
  1244. How to run Selenium WebDriver script in Firefox browser using DesiredCapabilities?
  1245. What does Thread.sleep() method does?
  1246. How to Kill all the browsers at the same time?
  1247. In XPath, I wants to do partial match on attribute value from beginning. Tell me two functions using which I can do It?
  1248. How to verify the text inside the text box is present or not?
  1249. How to accept exceptions in testNG?
  1250. I have used findElements In my test case. It Is returning NoSuchElementException when not element found. Correct me If I am wrong.?
  1251. My Firefox browser Is not Installed at usual place. How can I tell FirefoxDriver to use It?
  1252. How to handle Untrusted SSL certificate error in IE browser?
  1253. Can we run testNG class code without using any TestNg annotation?
  1254. Can you describe major features of TestNG?
  1255. Describe the similarities and difference between JUnit and TestNG unit testing frameworks.
  1256. How to Install TestNG In Eclipse? How do you verify that TestNg Is Installed properly In Eclipse?
  1257. I have a test case with two @Test methods. I want to exclude one @Test method from execution. Can I do It? How?
  1258. Tell me syntax to skip @Test method from execution.?
  1259. Tell me any 5 assertions of TestNG which we can use In selenium webdriver.?
  1260. Can you tell me usage of TestNG Soft Assertion?
  1261. How to write regular expression In testng.xml file to search @Test methods containing “product” keyword.?
  1262. Which time unit we provide In time test? minutes? seconds? milliseconds? or hours? Give Example?
  1263. What Is the syntax to get value from text box and store It In variable.?
  1264. Can we use implicitly wait() and explicitly wait() together in the test case?
  1265. What types of Models choose while designing the framework?
  1266. What are the most common pre define functions of xpath?
  1267. How to set the browser for the GRID? 1106. How to get the snapshot using selenium?
  1268. How to shoot the snapshot using selenium?
  1269. What is the command line we have to write inside a .bat file to execute a selenium project when we are using testng ?
  1270. There is a scenario whenever “Assert.assertEquals()” function fails automatically it has to take screenshot. How can you achieve this ?
  1271. Which is the best way to locate an element?
  1272. Why we refer Firefox driver to the web driver inheritance.?
  1273. What is the difference between thread.Sleep() and selenium. Set Speed (“2000”)?
  1274. In what situation selenium finding element get fails?
  1275. How we can retrieve the dynamically changing Ids?
  1276. What is the basic use of Firefox profiles and how can we use them using selenium? 1116. Customize the name of file going to be downloaded
  1277. What is Error Collector in TestNG? What is its use?
  1278. How to run tests in multiple browser parallel? Is there any other option other than selenium grid?
  1279. How to prepare Customized html Report using TestNG in hybrid framework.?
  1280. How the TestNG interacts with Selenium Core? Explain me steps and internal architecture?”What is TestNG?
  1281. Is it possible test web services using selenium?
  1282. How to refresh a page without using context click?
  1283. Can you send a code for printing in selenium?
  1284. How to get the name of browser using Web Driver?
  1285. How to get text from captcha image?
  1286. Is there a way to click hidden LINK in web driver?
  1287. How to disable cookies in browser.?
  1288. We have heard about frameworks well it can be broadly classified into these TDD, BDD and ATDD frameworks .What’s the Difference?
  1289. How to change user agent in Firefox by selenium web driver.?
  1290. What is the MOST challenging test problem in my career in Automation?
  1291. Suppose developer changed the existing image to new image with same xpath. Is test case pass or fail?
  1292. How to work with radio button in web driver?
  1293. Detail about TestNG Test Output folder.?
  1294. What is SIDE? What are the different assertions in SIDE?
  1295. How to ZIP files in Selenium with an Example?
  1296. How to do Applet testing using selenium?
  1297. If Default port no is busy how to change port no?
  1298. Majorly asked test scenario with framework in Interviews?
  1299. I want to find the location of “”b”” in the below code, how can I find out without using xpath, name,id, csslocator, index?
    • <div> <Button>a</button> <Button>b</button> <Button>c</button> </div>
  1300. What is Git? What is the difference between Git and GitHub?
  1301. How many test cases are there in your test suite?
  1302. What is String tokenizer??
  1303. Have you used String tokenizer?
  1304. What is Maven and explain about different Maven goals?
  1305. Did you find any Test Scenarios that not to be automated in your project using Selenium?
  1306. How to synchronize collection class?
  1307. Action is class or interface?
  1308. How do you handle exception handling in selenium?
  1309. How to handle auto complete box in WebDriver?
  1310. How can we retrieve the dynamically changing ads?
  1311. If a selenium function requires a script argument. What would that argument look like in general terms?
  1312. Latest version of firefox and selenium in market and the version on which you are testing?
  1313. What is the difference between WebDriver Listeners and TestNG Listeners?
  1314. Write program for checking mails and deleting them?
  1315. Does selenium support https protocols ?
  1316. Write code for Google search and finding no of results?
  1317. Write code for shopping in flipkart?
  1318. Parameter annotation, how to add system property for chrome/iedriver.exe for chrome & IE?
  1319. TestNG- Write sample code to select browser depending on parameter given in testing.xml?
  1320. How to check result with expected?
  1321. Explain Assert.assertEquals()?
  1322. Can we execute java code without main()?
  1323. What are the access modifier and difference.public, private, protected, default?
  1324. Why Review is required and who are involved?
  1325. What is the difference between a Class and Object?
  1326. Write a Java program to check whether an year is leap year or not?
  1327. Where to use Hashtable in real time?
  1328. Write a Java program to see the output as 0,1,1,2,3?
  1329. What is the difference between Volatile & Transient in Java?
  1330. Do you have any idea on Enumeration?
  1331. Have you worked with SVN?
  1332. How can you attach a file file in email using Selenium?
  1333. What is the execution order??? @test1 (priority=1) @test2 (priority=2) @test3 @test4(priority=3)?
  1334. Can we start from 0 ie.prority=0; can we give priority= -12 ie. –ve no?
  1335. What difference you see when working with different browser?(except set up or configuration level)?
  1336. Have you got any issue that something working fine in FF but not in IE browser. At that time what you will do?
  1337. How do you know when to use abstract class and Interface?
  1338. Draw collections hierarchy?
  1339. What is boxing and un-boxing?
  1340. What is object repository and explain page factory technique?
  1341. Write a code on how you will access web elements x-paths from page factory classes?
  1342. How to work on dynamic drop down list, tell me the steps to work with it and it must include actions class with mouse hover operations?
  1343. What is Apache POI?
  1344. Write a code to get the data from excel using POI library?
  1345. Why TestNG and why not JUnit?
  1346. What is batch and group execution in TestNG?
  1347. What are listeners?
  1348. How do you know which test cases to automate and which not to automate?
  1349. What is log4j and how did you use in web driver?
  1350. What is Webdriver-Java interface?
  1351. String x=”ABC”; String x=”ab”; does it create two objects?
  1352. Class a { } class b extends a { } A a= new A(); B b=new B(); A a= new B(); B a=new A(); Which is valid and invalid?
  1353. How to handle different type of pop up.(Window,Alerts,Invisible popup)? 1194. How to handle Google search text?
  1354. How to handle dynamic text box which contains the 3 numbers, get the number and add the three number and add it other text box?
  1355. How to work with button which is in div tag and and u have to click without using xpath?
  1356. JVM is dependent or independent platform?
  1357. How to parameterized your junit?
  1358. What are the types of assertion and what are assertion in junit?
  1359. What is dom concept?
  1360. What is genrics?
  1361. What is synchronization?
  1362. What is the difference between hashmap and hash set?
  1363. What is the difference between set and linkedlist?
  1364. What is the difference between arraylist and vector list?
  1365. What is the difference between linkedhash set and hashset?
  1366. What are the types of assertion and what are assertion in java?
  1367. What is the default package in java ?
  1368. What are inner classes ..name them ?
  1369. In public static void main(String arr[])… what if i replace public with private ……….. remove static ……..replace void with string?
  1370. In hash map we have (key and value ) pair , can we store inside a value =(key, value ) again ?
  1371. What are variable scope in java (in class , in method , in static block)?
  1372. Write a Java program so that when ever you create a object, you get to know how many object u have created?
  1373. What is difference between .equals() , (==) and compare-to(); ?
  1374. What is the difference between hash code and equals?
  1375. We have 2 interfaces and both have print methods, in my class I have implemented the print method , how you will get to know that I have implemented the first interface and how you will use it .. if you want to use it?
  1376. What is priority queue in collection, what is its use and how you have use in your project?
  1377. What is the difference between MAP & Set ?
  1378. How to call the super class method in subclass?
  1379. What is the base class for all java classes? And mention its methods?
  1380. What is hashcode method? Explain pragmatically by implementing hashcode method?
  1381. What is toString() method ?What happens when I use in the program?
  1382. What is the capacity of String Buffer?
  1383. What is a list?
  1384. Why vector class is defined Synchronized ?
  1385. If you have multiple alerts, how do you handle it?
  1386. How to run build.xml through command prompt?
  1387. Retrieve the test data from excel sheet, put in in google search bar, click on search button and click on the first link opened in google search?
  1388. Write a program to check whether the string can be a palindrome. for example if the string aab(it is not a palindrome string). replace the characters in a string like aba, baa etc. and check that can be a palindrome string.?
  1389. How will you Identify the webelement that has same property values?
  1390. Write a program to return the number of rows and columns in a webtable?
  1391. Write a program to return the row and column value like(3,4) for a given data in web table?
  1392. How to create a folder in build.xml? 1234. How to handle window id? 1235. How u will get the frame id?
  1393. Why we are using following siblings?
  1394. Create a pagefactory for login page?
  1395. Can you map test method names in XML file along with class names?
  1396. Sequence of execution of below annotations: @Test @BeforeGroups @AfterGroups @BeforeSuite @AfterSuite @BeforeMethod @AfterMethod @BeforeClass @AfterClass?
  1397. What is Yaml file?
  1398. How do you fail test cases in TestNg?
  1399. How can we control the order of test method invocation?
  1400. How can you make sure test methods which are run in a certain order doesn’t really depend on the success of others ?
  1401. What is the use of static keyword in Main()?
  1402. Can a class without main() gets compilation successful?
  1403. Can we create private access specifier inside interface?
  1404. Is there any way to deallocate memory in JAVA?
  1405. Write a program for removing white spaces in a String?
  1406. You have a parametrized constructor, whether it will call default constructor first? or directly it will call parametrized constructor?
  1407. How will you analyze the failures after giving a run in the TestNG framework?
  1408. What is Object class?
  1409. Jenkins Tool – Scheduled Batch Run?
  1410. How are you writing log files in your framework? Using Log4J Jars or any other methods.?
  1411. Write Page factory model code?
  1412. How to overwrite a data in excel sheet?
  1413. String s=”AABBBCFFDD” Count the presence of each letter?
  1414. Write a Java program for pascle triangle?
  1415. What are the differences between interface and inheritance?
  1416. If we close the driver in try block then,FINALLY will execute or not?
  1417. Why we go for hybrid frame work?
  1418. What is the difference between data driven and modular frameworks?
  1419. Can we run a test without testng?
  1420. What in difference between method overloading and constructor overloading?with example?
  1421. What is the difference between normal class and final class?
  1422. How to handle frames without having any attributes?
  1423. Adapter design in java?
  1424. Write a Java program for sorting of numbers?
  1425. Write Generic method for selecting from a drop-down?
  1426. Write generic code for fetching data from excel sheet?
  1427. How to fetch all the options in auto suggestion?
  1428. How to generate daily execution report?
  1429. Write a Java program for searching a letter in string?
  1430. Write a Java program for sorting an array?
  1431. What is a good approach to throw an exception?
  1432. How many test case you run in a batch execution?
  1433. How to execute the failed scenarios up to 3 times?
  1434. Find how many duplicate values in Array List?
  1435. String [] str={“abc”,”efg”,”fgh”}; convert array to string?
  1436. Explain the features of JAVA?
  1437. How do u say JAVA is platform independent?
  1438. Is JVM platform independent? 1282. Explain ANT and what are its pros and cons?
  1439. Acronym of ANT and POI?
  1440. What is Cucumber?
  1441. What are the advantages of Cucumber?
  1442. What are the 2 files required to execute a Cucumber test scenario?
  1443. What language is used by Cucumber?
  1444. What is meant by a feature file ?
  1445. What does a feature file consists of?
  1446. What are the various keywords that are used in Cucumber for writing a scenario?
  1447. What is Scenario Outline in Cucumber and its purpose?
  1448. What programming language is used by Cucumber?
  1449. What is the purpose of Step Definition file in Cucumber?
  1450. What are the major advantages of Cucumber framework?
  1451. Provide an example of a feature file using the Cucumber framework.
  1452. Provide an example of Scenario Outline using Cucumber framework?
  1453. What is the purpose of Behaviour Driven Development (BDD) methodology in the real world?
  1454. What is the limit for the maximum number of scenarios that can be included in the feature file?
  1455. What is the use of Background keyword in Cucumber?
  1456. What symbol is used for parameterization in Cucumber?
  1457. What is the purpose of Examples keyword in Cucumber?
  1458. What is the file extension for a feature file?
  1459. Provide an example of step definition file in Cucumber.
  1460. What is the purpose of Cucumber Options tag?
  1461. How can Cucumber be integrated with Selenium WebDriver?
  1462. When is Cucumber used in real time?
  1463. Provide an example of Background keyword in Cucumber?
  1464. What is the use of Behavior Driven Development in Agile methodology?
  1465. Explain the purpose of keywords that are used for writing a scenario in Cucumber?
  1466. What is the name of the plugin that is used to integrate Eclipse with Cucumber?
  1467. What is the meaning of TestRunner class in Cucumber?
  1468. Provide an example of TestRunner class in Cucumber?
  1469. What is the starting point of execution for feature files?
  1470. Should any code be written within TestRunner class?
  1471. What is the use of features property under Cucumber Options tag?
  1472. What is the use of glue property under Cucumber Options tag?
  1473. What is the maximum number of steps that are to be written within a scenario?
  1474. Give an example of behavior driven test in plain text?
  1475. Give the example for step definition using “Given” function?
  1476. What are the difference between Jbehave and Cucumber?
  1477. Explain what is test harness? 1322. Explain when to use Rspec and when to use Cucumber?
  1478. What is the language used for expressing scenario in feature file ?
  1479. Explain what are regular expressions in Cucumber?
  1480. What software do you need to run a Cucumber Web Test ?
  1481. Cucumber Execution Starts From Where?
  1482. What Is Support, Env.rb And Hooks.rb ?
  1483. What Is Profile In Cucumber?
  1484. What Are Before, After, Beforestep And Afterstep Hooks?
  1485. What Are Cucumber Tags? Why We Use The Tags?
  1486. What Is Cucumber Dry Run?
  1487. Is It Mandatory To Use The Keywords While Writing Scenario Steps ?
  1488. How To Generate Cucumber Execution Reports?
  1489. How to run a Particular Scenario from a Feature File ?
  1490. Explain what is Scenario Outline In Feature File?
  1491. What Is Step Definition In Cucumber?
  1492. Explain What is Bdd (Behaviour Driven Development) ?
  1493. What are the benefits of Bdd in Selenium ?
  1494. What are the different scenarios in the Cucumber tool?
  1495. How Cucumber complies with BDD?
  1496. What are the prerequisites for building a Selenium Cucumber automation framework?
  1497. Are there any ready made Selenium-Cucumber frameworks available?
  1498. What if you don’t use the cucumber keywords in test steps?
  1499. Define feature file. Mention the components of feature file?
  1500. How can any scenario in the feature file be written?
  1501. Mention the main reasons behind using a simple programming language such as Gherkin?
  1502. What is the meaning of Steps in Cucumber tool?
  1503. What is Cucumber Report? Mention the benefits of Cucumber Report?
  1504. What is the cucumber.yml file in cucumber?
  1505. How does the feature of this product/project look like?
  1506. Explain JUnit Runner?
  1507. What are the steps to generate a report in Cucumber?
  1508. Full form of BDD?
  1509. Full form of TDD?
  1510. Name any 3 popular BDD testing tools?
  1511. What is the difference between cucumber, JBehave, and Specflow?
  1512. What are the two main purpose of using Gherkin?
  1513. What is the difference between Given, When, Then steps in feature file?
  1514. How to comment a line in Feature file? 1360. Cucumber Tags are case sensitive. True or False?
  1515. Name any two testing framework that can be integrated with Cucumber?
  1516. Name any two build management tools that can be integrated with Cucumber?
  1517. What software do you need to run cucumber in JAVA?
  1518. How does a JUnit Test Runner class look like?
  1519. What is @CucumberOptions in test runner? List the properties of @CucumberOptions?
  1520. Name any advanced framework design that can be used with Cucumber?
  1521. Selenium can be integrated with Cucumber. True or False?
  1522. Explain Cucumber Hooks?
  1523. Can you name any other BDD tools except Cucumber?
  1524. What are the programming language supported by Cucumber?
  1525. What are the programming languages supported by Cucumber?
  1526. How to install Cucumber in Eclipse IDE?
  1527. What are the JAR files to be used for Cucumber?
  1528. What is the real time use of Cucumber?
  1529. What is the plugin’s name that is used to integrate Cucumber into Eclipse IDE?
  1530. What are the Gherkin keywords?
  1531. How many times scenario outline will be executed?
  1532. If Before hook is available and background is available for a scenario, in which order they will be executed?
  1533. Explain the procedure how do you create cucumber end to end tests for the given test case. launch a website google.com Enter “selenium” in search field click on search button results should be displayed.?
  1534. Types of reports generated by cucumber JUNIT?
  1535. What is background and when it will be executed?
  1536. How to run multiple feature files in Cucumber?
  1537. How to create feature file in Cucumber?
  1538. How to run Cucumber tests in parallel?
  1539. Explain types of Hooks in Cucumber?
  1540. Is Cucumber open source?
  1541. Can we write cucumber tags ( @smoke , @Run etc ) above feature keyword in feature file?
  1542. What is the pattern of writing Given, When, Then, And, or But?
  1543. What is the main difference between Scenario and Scenario outline?
  1544. Write a three line code to show scenario outline?
  1545. What are the cucumber assertions?
  1546. Does cucumber supports steps hooks?
  1547. What are the tagged hooks in cucumber?
  1548. On what places you can write tags in feature file?
  1549. What is Tag Inheritance in cucumber?
  1550. What are Data Tables in Cucumber?
  1551. Can we use TestNG with cucumber?
  1552. How does the Cucumber execution start?
  1553. How will you execute specific scenario using line number?
  1554. What is Test Runner in cucumber?
  1555. What is the execution priority in cucumber?
  1556. Can we use same step definition in different scenarios?
  1557. Can we have two step definition for one scenario step?

Note:

  • > If you find any Selenium related interview question that is not listed in the above 1500 plus list. Please feel free to comment in this blog post.

Please leave your questions/comments/feedback below.

Happy Learning 🙂

Arun Motoori(www.QAFox.com)

If you like this article, share it on LinkedIn using the below button:

Comments (36)

Leave a Reply

Your email address will not be published. Required fields are marked *