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?
    2. What are locators, different types of locators that can be used in Selenium and their priorities?
    3. What are the different types of drivers available in WebDriver?
    4. How do I launch the browser using WebDriver?
    5. What are the different types of navigation commands in WebDriver?
    6. How can you find whether an element is displayed on the screen using Selenium?
    7. How can we get a text on a web element using Selenium?
    8. How to type into a text box using Selenium?
    9. How to handle a drop-down field and select a value from it using Selenium?
    10. What are the different types of waits available in WebDriver?
    11. What is the latest Selenium tool?
    12. What do we mean by Selenium 1, Selenium 2 and Selenium 3?
    13. When should I use Selenium Grid?
    14. What is the difference between ‘/’ and ‘//’ in XPath?
    15. What is an XPath?
    16. What is the difference between driver.close() and driver.quit() commands?
    17. Is WebDriver a class or interface?
    18. What is the super interface of WebDriver ?
    19. How to find more than one web element in to a list?
    20. Is FirefoxDriver a class or interface?
    21. Explain the line of code WebDriver driver = new FirefoxDriver();?
    22. How to handle frames in WebDriver?
    23. How to click on a hyperlink using Selenium WebDriver?
    24. What are the programming languages supported by Selenium WebDriver?
    25. What are the operating systems supported by Selenium WebDriver?
    26. What are the browsers supported by Selenium WebDriver?
    27. What is the difference between Implicit Wait and Explicit Wait?
    28. How to read and verify the text on the tooltip using Selenium WebDriver?
    29. Can Selenium Automate Desktop Applications?
    30. What is the main component of Selenium?
    31. What is an XPath and What is the difference between Absolute and Relative XPath? Give examples?
    32. What is the disadvantage of Absolute XPath and why is Relative XPath recommended over it?
    33. What is an Absolute XPath? Write its syntax?
    34. What is a Relative XPath? Write its syntax?
    35. How to execute JavaScript in Selenium?
    36. What is the concept that makes XPath Expressions powerful out of all the locators?
    37. Why CSS Selectors have higher priority over XPath Expressions?
    38. What are the names of add-ons which can auto-generate the XPath Expressions and CSS Selectors?
    39. Write a Java program for printing the even numbers between 1 and 100 using for loop?
    40. Write a Java program to find the sum of first 100 numbers using for loop?
    41. 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’?
    42. Does java support multiple inheritance? Give reasons?
    43. What is the parent or base class of all the classes in Java?
    44. What is the difference between instance variable and a local variable?
    45. Is Java a pure 100% Object Oriented Programming language?
    46. What is the difference between Primitive and Non-Primitive Data types in Java?
    47. Why Strings are immutable in Java?
    48. What is the difference between String and StringBuffer?
    49. 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?
    50. How to assign different types of values say integer, character, string, decimal and boolean into the same array?
    51. What is the disadvantage of Array?
    52. What is the difference between equals() and == operator?
    53. What is the purpose of using Wrapper classes in Java?
    54. How to capture screen-shot in Selenium WebDriver ?
    55. What is Automation Testing?
    56. What is the difference between Manual and Automation Testing?
    57. What are the benefits of Automation Testing?
    58. Which Test cases needs to be automated?
    59. What are the popular test automation tools for functional testing?
    60. What is the main purpose of Automation Testing?
    61. What is the goal of Automation Testing?
    62. Why Selenium should be selected as a Test tool?
    63. What are the testing types that can be supported by Selenium?
    64. What are the limitations of Selenium?
    65. What is the difference between Selenium IDE, Selenium RC and Selenium WebDriver?
    66. When should I use Selenium IDE?
    67. What is Selenese?
    68. What is the difference between Assert and Verify commands?
    69. What is Same Origin Policy and how it can be handled? How to overcome same origin policy through web driver?
    70. How do you use findElement() and findElements()?
    71. Can Selenium handle window based pop up?
    72. How can we handle window based pop up using Selenium?
    73. How can we handle web-based pop up using Selenium?
    74. How to assert title of the web page?
    75. How to mouse hover on a web element using WebDriver?
    76. How to retrieve CSS Properties of an element?
    77. What is JUnit?
    78. What are JUnit annotations?
    79. What is TestNG and what is its use?
    80. How is TestNG better than JUnit?
    81. How to set test case priority in TestNG?
    82. What is a Framework?
    83. What are the advantages of Automation Framework?
    84. What are the different types of Frameworks?
    85. How do you decide a particular framework for a project?
    86. How can I read test data from Excel files?
    87. What is the difference between POI and JXL Jars?
    88. What is the difference between Selenium and QTP/UFT?
    89. Can WebDriver test mobile applications?
    90. Can Captcha be automated using Selenium?
    91. What is Object Repository and how can we create an Object Repository in Selenium?
    92. What types of tests have you automated?
    93. How many test cases have you automated per day?
    94. Have you created any Framework?
    95. Can you explain the Selenium Framework which you have used in your project?
    96. Why do you prefer Selenium Automation tool?
    97. What is Selenium IDE?
    98. What are the browsers supported by Selenium IDE?
    99. What is Selenium RC?
    100. What is Selenium WebDriver?
    101. What is Selenium Grid and when do we go for it?
    102. What are the advantages of Selenium Grid?
    103. What is a Hub in Selenium Grid?
    104. What is a Node in Selenium Grid?
    105. What are the types of WebDriver API’s that are supported/available in Selenium?
    106. Which WebDriver implementation claims to be the fastest?
    107. What are the open source frameworks supported by Selenium WebDriver?
    108. What is the difference between Soft Assert and Hard Assert in Selenium?
    109. What are the verification points available in Selenium?
    110. Why do we create a reference variable ‘driver’ of type WebDriver and what is the purpose of its creation?
    111. What are the different types of exceptions you have faced in Selenium WebDriver?
    112. How to login into any site if it is showing an authentication pop-up for Username and Password?
    113. What is implicit wait in Selenium WebDriver?
    114. What is WebDriver Wait in Selenium WebDriver?
    115. What is Fluent Wait in Selenium WebDriver?
    116. How to input text into the text box fields without calling the sendKeys()?
    117. How to clear the text inside the text box fields using Selenium WebDriver?
    118. How to get an attribute value of an element using Selenium WebDriver?
    119. How to press Enter key on text box in Selenium WebDriver?
    120. How to pause a text execution for 5 seconds at a specific point?
    121. Is Selenium Server needed to run Selenium WebDriver scripts?
    122. What happens if we run this command driver.get(“www.tutorialsninja.com”);?
    123. What is an alternative to driver.get() method to open a URL using Selenium WebDriver?
    124. What is the difference between driver.get(“URL”) and driver.navigate().to(“URL”) commands?
    125. Can I navigate back and forth in a browser using Selenium WebDriver?
    126. What are the different types of navigation commands in Selenium WebDriver?
    127. How to fetch the current page URL in Selenium WebDriver?
    128. How can we maximize browser window in Selenium WebDriver?
    129. How to delete cookies in Selenium?
    130. What are the different ways for refreshing the page using Selenium WebDriver?
    131. What is the difference between driver.getWindowHandle() and driver.getWinowHandles() in Selenium WebDriver and their return type?
    132. How to handle hidden elements in Selenium WebDriver?
    133. How can you find broken links in a page using Selenium WebDriver?
    134. How to find more than one web element in the list?
    135. How to read a JavaScript variable in Selenium WebDriver?
    136. What is JavascriptExecutor and in which case JavascriptExecutor will help in Selenium automation?
    137. How to handle Ajax calls in Selenium WebDriver?
    138. List some scenarios which we cannot automate using Selenium WebDriver?
    139. How you build object repository in your project framework?
    140. What is Page Object Model (POM) and its advantages?
    141. What is Page Factory?
    142. What is the difference between Page Object Model and Page Factory?
    143. What are the advantages of Page Object Model?
    144. How can use Recovery Scenario in Selenium WebDriver?
    145. How to upload a file in Selenium WebDriver?
    146. How to download a file in Selenium WebDriver?
    147. How to run Selenium WebDriver tests from command line?
    148. How to switch to frames in Selenium WebDriver?
    149. How to connect to a database in Selenium?
    150. How to resize browser window using Selenium WebDriver?
    151. How to scroll web page up and down using Selenium WebDriver?
    152. How to perform right click (Context Click) action in Selenium WebDriver?
    153. How to perform double click action in Selenium WebDriver?
    154. How to perform drag and drop action in Selenium WebDriver?
    155. How to highlight elements using Selenium WebDriver?
    156. Have you used any cross browser testing tool to run Selenium Scripts on cloud?
    157. What are the DesiredCapabitlies in Selenium WebDriver and their use?
    158. What is Continuous Integration?
    159. How to achieve database testing in Selenium?
    160. What is TestNG?
    161. What are Annotations and what are the different annotations available in TestNG?
    162. What is TestNG Assert and list out some common assertions supported by TestNG?
    163. How to create and run TestNG.xml?
    164. How to set test case priority in TestNG?
    165. What is parameterized testing in TestNG?
    166. How to run a group of test cases using TestNG?
    167. What is the use of @Listener annotation in TestNG?
    168. How can we create a data driven framework using TestNG?
    169. Where you have applied OOPS in Automation Framework?
    170. How to handle Chrome Browser notifications in Selenium?
    171. Explain any Test Automation Framework?
    172. Tell some popular Test Automation Frameworks?
    173. Why Framework?
    174. Which Test Automation Framework you are using and why?
    175. Mention the name of the Framework which you are using currently in your project, explain it in details along with its benefits?
    176. Mention the name of the Framework which you have hands on experience?
    177. Can you explain the Selenium framework which you have used in your project?
    178. What type of test cases do you pick up to automate?
    179. What type of test cases you won’t pickup to automate?
    180. What is Selenium and what it is composed of?
    181. What is Selenium 1.0?
    182. What is Selenium 2.0?
    183. What is Selenium 3.0?
    184. How will you find an element using Selenium?
    185. List out the test types that are supported by Selenium?
    186. Explain what is assertion in Selenium and what are the different types of assertions?
    187. What is the use of XPath in Selenium?
    188. List out the technical challenges with Selenium?
    189. What is the difference between type keys and type commands?
    190. While using click() command, can you use screen coordinates?
    191. What are the advantages of Selenium?
    192. Why testers should opt for Selenium and not QTP?
    193. What are the four parameters you have to pass in Selenium?
    194. What is the difference between setSpeed() and sleep() methods?
    195. What is heightened privileged browsers?
    196. What are the features of TestNG and list some of the functionalities which makes it more effective?
    197. Which attribute you should consider throughout the script in frame for (if no frame id as well as no frame name”)?
    198. Explain the different JUnit annotations mostly used while writing the Selenium scripts?
    199. Explain what is a data driven framework?
    200. Explain what is a keyword driven framework?
    201. How to assert text on a web page using Selenium?
    202. Explain how Selenium Grid works?
    203. Can we use Selenium Grid for performance testing?
    204. List the advantages of Selenium WebDriver over Selenium Server?
    205. Mention the different capabilities of Selenium WebDriver ?
    206. 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?
    207. Explain how you can find broken images in a page using Selenium WebDriver?
    208. Explain how you can handle colors in Selenium WebDriver?
    209. Explain how you can switch back from a frame?
    210. How can you prepare customized HTML report using TestNG in hybrid framework?
    211. How can you generated HTML report from your test scripts?
    212. Explain how you can insert a break point in Selenium IDE?
    213. Explain how you can debug the tests in Selenium IDE?
    214. What are the different types of Selenese?
    215. What are the limitations of Selenium IDE?
    216. What are the two modes of views in Selenium IDE?
    217. In Selenium IDE, what are the element locators that can be used to locate the elements on web page?
    218. In Selenium IDE, can you generate random numbers and dates for test data?
    219. How can you convert any Selenium IDE tests from Selenese to other other language?
    220. Using Selenium IDE, is it possible to get data from a particular HTML table cell?
    221. Explain what can cause a Selenium IDE test to fail?
    222. In Selenium IDE, explain how you can execute a single line?
    223. 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?
    224. Using Selenium IDE, how can you test whether the locator you have written on your own is able to find the elements?
    225. What are regular expressions and how you can use them in Selenium IDE?
    226. What are core extensions in Selenium IDE?
    227. How you will handle switching between multiple windows in Selenium IDE?
    228. How you will verify the specific position of an Web Element in Selenium IDE?
    229. How you will retrieve the message in an Alert box in Selenium IDE?
    230. Why Selenium RC is preferred over Selenium IDE?
    231. What is the difference between Selenium RC and Selenium WebDriver?
    232. What are the advantages of using Selenium RC over Selenium IDE?
    233. What are the technical limitations while using Selenium RC?
    234. Why to use TestNG with Selenium WebDriver?
    235. Using Selenium, how can you handle Network latency?
    236. What is the command that can be used for entering values into the text box fields?
    237. What are the challenges in handling AJAX calls in Selenium WebDriver?
    238. What is IntelliJ and how it is different from Eclipse IDE?
    239. What are the different ways to customize TestNG report?
    240. What is required to generated the PDF reports?
    241. What are Selenium WebDriver Listeners?
    242. What are the different types of Listeners in TestNG?
    243. What is the API that is required for implementing Database Testing using Selenium WebDriver?
    244. When to use AutoIt?
    245. Why do we need Session Handling while using Selenium WebDriver?
    246. What is the advantage of using GitHub for Selenium?
    247. What are the advantages and disadvantages of Selenium over other testing tools like QTP and TestComplete?
    248. What is exception test in Selenium?
    249. Why and how will you use an Excel sheet in your Selenium project?
    250. How can you redirect browsing from a browser through some proxy?
    251. How do you achieve synchronization in WebDriver?
    252. Write a code to wait for a particular element to be visible on a page.
    253. Write a code to wait for an alert to appear.
    254. How to scroll down a page using JavaScript in Selenium?
    255. How to scroll down to a particular element?
    256. How to handle keyboard and mouse actions using Selenium?
    257. Which files can be used as data source for different frameworks?
    258. . How can you fetch an attribute from an element?
    259. How to retrieve typed text from a text box?
    260. How to send alt or shift or control or enter or tab key in Selenium WebDriver?
    261. How to set the size of browser window using Selenium?
    262. How to switch to a new window (new tab) which opens up after you click on a link?
    263. How to pass parameters through testng.xml to a test case?
    264. Explain DataProviders in TestNG using an example
    265. Can I call a single data provider method for multiple functions and classes?
    266. How to skip a @Test method or a code block in TestNG?
    267. What is Soft Assertion in selenium and how can you mark a test case as failed by using soft assertion?
    268. Explain what is a Group Test in TestNG?
    269. Explain How does TestNG allow you to state dependencies with an example?
    270. Explain what does @Test(InvocationCount=?) and @Test(threadPoolSize=?) indicate?
    271. How is Selenium different from commercial browser automation tools?
    272. What are the set of tools available with Selenium?
    273. Which Selenium tool should be used?
    274. Which language is used in Selenium IDE?
    275. What are Accessors in Selenium IDE?
    276. Can I control the speed and pause the test executed in Selenium IDE?
    277. Where do I see the results of Test Execution in Selenium IDE?
    278. Where do I see the description of commands used in Selenium IDE?
    279. Can I build test suite using Selenium IDE?
    280. What verification points are available in Selenium IDE?
    281. There is id, name, XPath, CSS locator, which one should I use?
    282. Selenium RC, any way to speed up the Selenium Server load time?
    283. How to set a global base URL for every test case of one test suite file in Selenium IDE?
    284. How to check for 404 using Selenium WebDriver?
    285. How to get HTTP Response code using Selenium WebDriver?
    286. How to stop selenium from creating temporary Firefox profiles using web driver?
    287. How to close browser popup window in Selenium WebDriver?
    288. How to select values in combo-box item using Selenium WebDriver?
    289. What is the difference between Selenium IDE, Server, RC and WebDriver?
    290. How to get the html source code of a particular web element using Selenium WebDriver?
    291. What are the different driver classes available in Selenium WebDriver API?
    292. What automation tools could be used for post-release validation with continuous intergration?
    293. Does the latest version of Selenium WebDriver support Mobile Testing?
    294. What is the major differences between XPath Expressions and CSS Selectors?
    295. How to select a check box in Selenium?
    296. How to verify whether the checkbox option or radio button is selected or not?
    297. What is the alternative way to click on login button?
    298. How can you find the value of different attributes like name, class, value of an element?
    299. How to verify whether a button is enabled on the page?
    300. What kind of mouse actions can be performed using Selenium?
    301. What kind of keyboard operations can be performed in Selenium?
    302. Can Bar Code Reader be automated using Selenium?
    303. How to locate a link using its text in Selenium?
    304. Write the program to locate/fetch all the links on a specific web page?
    305. What is Robot API? 106. What methods of Robot class do you know?
    306. How do you get the height and width of a text box field using Selenium?
    307. Which package can be imported while working with WebDriver?
    308. What is the purpose of deselectAll() method?
    309. What is the purpose of getOptions() method?
    310. How to handle alerts in Selenium WebDriver?
    311. What is hybrid framework?
    312. Can you explain the line of code WebDriver driver = new FirefoxDriver();?
    313. What could be the cause for Selenium WebDriver test to fail?
    314. What is the difference between @Factory and @DataProvider annotation?
    315. How can we run test cases in parallel using TestNG?
    316. What are the different forms of Selenium?
    317. Can we test APIs or web services using Selenium WebDriver?
    318. How can we locate an element by only partially matching its attributes value in XPath?
    319. How can we locate elements using their text in XPath?
    320. How can we move to parent of an element using XPath?
    321. How can we move to nth child element using XPath?
    322. What is the syntax of finding elements by class using CSS Selectors?
    323. What is the syntax of finding elements by id using CSS Selectors?
    324. How can we select elements by their attribute value using CSS Selector?
    325. How can we move to nth child element using CSS Selector?
    326. How can we submit a form in Selenium?
    327. How can we fetch a text written over an element?
    328. What are some expected conditions that can be used in Explicit Waits?
    329. How can we fetch the title of the page in Selenium?
    330. How can we fetch the page source in Selenium?
    331. What are some randomly encountered exceptions in Selenium ?
    332. How to check which option in the drop-down is selected?
    333. How to handle HTTPS websites in Selenium? Does Selenium support them?
    334. How to accept the SSL untrusted connection?
    335. What is HtmlUnitDriver?
    336. What is the use of @Factory annotation in TestNG?
    337. What are some common assertions provided by TestNG?
    338. Name an API used for logging in Java?
    339. What is the use of logging in Automation?
    340. Can Selenium Test an application on Android Browser?
    341. How to select a radio button in Selenium WebDriver?
    342. How to handle AJAX popup windows?
    343. Give the example for method overload in Selenium?
    344. Write the code for Reading and Writing to Excel through Selenium?
    345. What are the pre-requisites for running Selenium WebDriver?
    346. What is WebDriverBackedSelenium?
    347. How to invoke an application in Selenium WebDriver?
    348. How to get the number of frames on a page using Selenium WebDriver?
    349. What is the command line we have to write inside a .bat file to execute a Selenium Project when we are using testng?
    350. How to check if a text is highlighted on the page?
    351. How to check whether a text is underlined or not?
    352. How to change the URL on a web page using Selenium WebDriver?
    353. There is a scenario whenever “Assert.assertEquals()” function fails automatically it has to take screenshot. How can you achieve this?
    354. 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?
    355.  While explaining the framework, what are points which should be covered?
    356. How to press Shift+Tab?
    357. What is the use of contextClick()?
    358. How do you accommodate project specific method in your framework?
    359. What are the different components of your framework and explain each?
    360. How to select all the check boxes in a page?
    361. Count the number of links in a page?
    362. How do you identify the XPath of element on your browser?
    363. Which one is better XPath or CSS Selectors and the reasons for the same?
    364. 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?
    365. What are the different assertions or check points used in your Selenium WebDriver scripts?
    366. What is Actions class in WebDriver and its methods?
    367. What is the difference between @BeforeMethod and @BeforeClass ?
    368. What are the different attributes for @Test annotation?
    369. What are OOPS concepts?
    370. Provide real time examples for each and every OOPS concepts?
    371. What is inheritance?
    372. What is the difference between method overloading and method overriding?
    373. Write a java program to find the factorial of a given number ?
    374. What are the different access specifiers in Java?
    375. Why do we go for Automation Testing?
    376. Write a code to make use of assert if my username is incorrect.
    377. Define Selenium?
    378. What are the top Selenium alternatives available for free?
    379. What are the open source frameworks does Selenium support?
    380. What are different versions of Selenium available you have used and what are the additional features you have seen from the previous versions?
    381. What is the principle difference between a Data-driven framework and a Keyword Driven Framework?
    382. What are the two most common practices for automation testing?
    383. What is Test Driven Development (TDD) Framework?
    384. What is Behavior Driven Development (BDD) Framework?
    385. What are the main traits of a good Software Test Automation framework?
    386. What are the challenges have you faced with Selenium and how did you overcome them?
    387. What are the different components of Test Automation Framework?
    388. What are the benefits does WebDriver have over Selenium RC?
    389. Which of the WebDriver APIs is the fastest and why?
    390. What is the command to bind a node to Selenium Grid?
    391. Which of Java. C-Sharp or Ruby can we use with Selenium Grid?
    392. What are Selenium Grid Extras and the additional features does it add to Selenium Grid?
    393. Write a simple Java program ? – 100 Java questions by Technomar starts from here
    394. Write a Java program to print an integer value?
    395. Write a Java program to print the command line arguments?
    396. Write a Java program to print the input from scanner?
    397. Write a Java program to convert from Fahrenheit to Celsius?
    398. Write a Java program to swap two numbers?
    399. Write a Java program to swap two numbers without using third variable?
    400. Write a Java program to add two numbers?
    401. Write a Java program to find the largest number?
    402. Write a Java program to demonstrate if..else statement ?
    403. Write a Java program to demonstrate nested if … else if .. statement?
    404. Write a Java program to demonstrate nested if …else statement?
    405. Write a Java program to find odd and even numbers ?
    406. Write a Java program to compare two strings?
    407. Write a Java program to demonstrate for loop ?
    408. Write a Java program to print stars using for loop, where the number of stars printed should be equal to the row number?
    409. Write a Java program to demonstrate while loop?
    410. Write a Java program to print the entered number in reverse?
    411. Write a Java program to demonstrate the usage of break statement inside while loop?
    412. Write a Java program to demonstrate the usage of break and continue statements inside while loop?
    413. Write a Java program to print the alphabets using for loop?
    414. Write a Java program to demonstrate for each loop?
    415. Write a Java program for printing the Multiplication table?
    416. Write a Java program for printing the prime numbers?
    417. Write a Java program to check whether a given number is Armstrong ?
    418. Write a Java program to print Floyd’s triangle?
    419. Write a Java program to find all the sub-string of given string?
    420. Write a Java program to print the given string in reverse?
    421. Write a Java program to check whether the given number is palindrome?
    422. Write a Java program to add two matrix?
    423. Write a Java program to multiply two matrix?
    424. Write a Java program to get the transpose of matrix?
    425. Write a Java program to compare two strings?
    426. How to find whether a String ends with a specific character or text using Java program?
    427. Write a Java program to demonstrate indexOf() ?
    428. Write a Java program to demonstrate how to replace a string with another string?
    429. Write a Java program to split the given string?
    430. Write a Java program to remove the spaces before and after the given string?
    431. Write a Java program to convert all the characters in given string to lower case?
    432. Write a Java program to demonstrate creating a method?
    433. Write a Java program to find the length of the given string?
    434. Write a Java program to concatenate the given strings?
    435. Write a Java program to replace a string?
    436. Write a Java program to demonstrate a Static block?
    437. Explain the difference between static and instance methods in Java?
    438. Write a Java program to demonstrate creating multiple classes?
    439. Write a Java program to demonstrate creating a constructor?
    440. Write a Java program to demonstrate constructor overloading?
    441. Write a Java program to demonstrate Exception Handling?
    442. Write a Java program to demonstrate throwing an exception?
    443. Write a Java program to demonstrate the advantage of finally in Exception Handling?
    444. Write a Java program to demonstrate the creation of Interface ?
    445. Write a Java program to print date and time?
    446. Write a Java program to demonstrate SQL Date?
    447. Write a Java program to demonstrate Date format?
    448. Write a Java program to demonstrate generating a random number?
    449. Write a Java program to demonstrate garbage collection?
    450. Write a Java program to get the IP Address of own machine?
    451. Write a Java program to open a notepad?
    452. Write a Java program to demonstrate Leaner Search?
    453. Write a Java program to demonstrate Binary Search?
    454. Write a Java program to demonstrate Bubble sort?
    455. Write a Java program to demonstrate connecting to a Database?
    456. Write a Java program to demonstrate inserting data into a table using JDBC?
    457. Write a Java program to demonstrate inserting an image using JDBC?
    458. Write a Java program to demonstrate executing a Procedure in JDBC?
    459. Write a Java program to check Regular Expressions?
    460. Write a Java program to create Multi-threading?
    461. Write a Java program to demonstrate joining thread?
    462. Write a Java program to write data into the text files?
    463. Write a Java program to read data from the text files?
    464. Write a Java program to convert string to integer?
    465. Write a Java program to convert integer to string?
    466. Write a Java program to convert string to long?
    467. Write a Java program to convert string to float?
    468. Write a Java program to convert string to double?
    469. Write a Java program to convert string to date?
    470. Write a Java program to demonstrate ArrayList?
    471. Write a Java program to demonstrate LinkedList?
    472. Write a Java program to demonstrate ArrayList using List interface?
    473. Write a Java program to demonstrate Hashset?
    474. Write a Java program to demonstrate LinkedHashSet?
    475. Write a Java program to demonstrate TreeSet?
    476. Write a Java program to demonstrate PriorityQueue?
    477. Write a Java program to demonstrate creating HashMap using Map interface?
    478. Write a Java program to demonstrate LinkedHashMap ?
    479. Write a Java program to demonstrate TreeMap?
    480. Write a Java program to demonstrate Hashtable?
    481. Write a Java program to demonstrate creating an Array?
    482. Write a Java program to demonstrate creating Multidimensional array?
    483. Write a Java program to demonstrate creating factorial of a number using recursion?
    484. Write a Java program to demonstrate Method Overloading?
    485. What is a Class in Java?
    486. What is the difference between heap and stack?
    487. What is a Constructor and the different types of Constructors?
    488. What is the difference between break and continue statements?
    489. What is the command used in Java for exiting the system from current execution?
    490. What are the additional features in Java 8?
    491. What is the difference between for and for-each loops in Java?
    492. Can we have multiple public classes inside a single class in Java?
    493. What are the different types of inheritance in Java?
    494. What is Polymorphism, give example and how can we achieve it?
    495. Can we achieve method overloading when the two methods have only difference in return type?
    496. Give different examples for method overloading and overriding in Selenium Project?
    497. What is encapsulation in Java?
    498. What is IS-A and Has-A relationship in Java with examples?
    499. What is super and final keywords in Java and the difference between them?
    500. Explain run time polymorphism and compile time polymorphism with examples?
    501. Can final methods be overloaded?
    502. Can static methods be overloaded?
    503. Can final methods be overridden?
    504. Can static methods be overridden?
    505. Can we overload a main method in Java?
    506. Can we execute a class without a main method?
    507. What is a Package in Java?
    508. What is an Abstract Class in Java and explain with an example?
    509. What is an Interface and how it is different from Abstract Class?
    510. Can we use private and protect access modifiers inside an Interface?
    511. Can multiple inheritances supported in Interface?
    512. Give examples for Abstract class and Interface used in your Selenium Project?
    513. What is Exception and what is its base class?
    514. What is Final, Finally and Finalize?
    515. What is Garbage Collection in Java and how exactly it is done?
    516. What is the difference between throw and throws?
    517. What is Reflection and Singleton in Java?
    518. What is threading?
    519. How does multi-threading is achieved?
    520. How to initiate a thread in Java?
    521. What do you mean by thread safe?
    522. What is the difference between collection and collections?
    523. What is a Collection and what are the types of collections?
    524. What is the difference between Array and ArrayList?
    525. What is the difference between Set and HashSet?
    526. What is the difference between HashMap and HashTable?
    527. What is the difference between ArrayList and LinkedList?
    528. How do you use Map Collections in your Selenium Project (Give some examples) ?
    529. Can we have duplicate key value in HashMap?
    530. How to fetch values from a HashMap?
    531. Write a Java program to verify whether a number is perfect number or not?
    532. Write a Java program for printing the Fibonacci series from 1 to 10?
    533. Write a Java program to find the greatest of three numbers?
    534. Find and print the largest two numbers from an array of given numbers?
    535. In the given String, remove the white spaces, reverse it and print only the odd position characters?
    536. Check whether a string is anagram of another string?
    537. In a given string, change few characters to upper case as asked?
    538. In a given string, print the occurrence of each character?
    539. Find the duplicate strings in a given statement and remove them?
    540. Use split method to print each word of a statement?
    541. Find and remove the duplicate characters from a given string and print ?
    542. Write a Java program to print the triangle of numbers?
    543. Write a Java program to read and write a file?
    544. Write a Java program to calculate the power of a number using a while loop?
    545. How do you select the drivers to launch a URL?
    546. Which method is used to fetch the driver?
    547. Explain the concept of Object Repository?
    548. What is the difference between findElement() and findElements(), its return type and few examples of where you have used in Selenium Projects?
    549. Which method can be used to get the text of an element?
    550. How to check which check-box from multiple check-box options is selected previously using Selenium?
    551. What is the return type of isSelected() method in Selenium?
    552. What are the different methods which can be used to verify the existence of an element on a web page?
    553. What is XPath Axes and what are the different Axes available?
    554. How to fetch an element when its attributes are changing frequently?
    555. What are the different ways to click on a button using Selenium?
    556. What are the different types of waits, write their syntax, differences and explain the example scenarios where you have used in your Selenium Projects?
    557. What are the different types of Exceptions in Selenium?
    558. How to handle Selenium WebDriver Exceptions?
    559. 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?
    560. How do you handle an alert pop-up in Selenium?
    561. How do you retrieve the text displayed on an Alert?
    562. How do you type text into the text box on an Alert?
    563. Is Alert in Selenium an Interface or Class?
    564. How do you handle frames in Selenium?
    565. Give an example for method overloading concept that you have used in Selenium?
    566. How do you select a value from a drop-down field and what are the different methods available?
    567. When your XPath is matching more than one element, how do you handle it to locate the required element?
    568. How do you capture screen-shots in Selenium and what is the best place to have the screen-shot code?
    569. Write the code for connecting to Excel files and other operations?
    570. How do you read and write into a PDF file?
    571. What are the disadvantages of Selenium?
    572. How do you debug your automation code when it is not working as expected?
    573. What are the end methods you use for verifying whether the end result is achieved by our Selenium automation scripts?
    574. How do you clear the cookies of a browser using Selenium, before starting the execution?
    575. How do you implement collections in your framework?
    576. Give a scenario where inheritance is used in your framework?
    577. Give a scenario where interface is used in your framework? 382. Write a code using JavascriptExecutor to scroll the web page?
    578. What is the use of property file in Selenium?
    579. How do you handle multiple browsers selection in Selenium?
    580. What do you use for reporting in your Selenium Project?
    581. What are the different annotations available in TestNG and how they are different from JUnit annotations?
    582. Explain the usage of different annotations available in TestNG?
    583. How do you prioritize your test cases in Selenium?
    584. Suppose you want to skip one test method from execution, how do you skip it from execution?
    585. How Cross Browser testing is handled in Selenium?
    586. What is the hierarchy of testNG.xml tags?
    587. Explain the structure of testng.xml file?
    588. What are the different methods of Assert?
    589. How do you store your TestNG reports?
    590. How do you use Parameters in TestNG?
    591. What is the use of grouping in TestNG?
    592. What is Maven and its advantages of using it in your Selenium Project ?
    593. How do you define dependencies in your Maven Project?
    594. What is the name of maven folder which contains all the libraries?
    595. How do you enter values using Keys commands in Selenium?
    596. If a page contains 1000 images, how can you fetch 100th image?
    597. What is your approach to develop Automation Test Cases?
    598. How do you estimate your Automation Test Cases?
    599. How do you track your Automation Test Cases?
    600. How do you execute your Automation Test Cases?
    601. Have you worked in any BDD Framework?
    602. Tell me any difficulties you faced in developing automation scripts? Can you give any examples for any complex scenarios handled?
    603. What is Jenkins?
    604. What are the commands used in Jenkins?
    605. How do you setup Maven Project in Jenkins?
    606. How do you start Jenkins?
    607. What is the difference between List and Set?
    608. How to switch to another window using Selenium?
    609. How will you ensure that the page has been loaded completely?
    610. What are the different classes which implement WebDriver?
    611. What is the purpose of using Firebug?
    612. What is the purpose of using Constructors in Java?
    613. How Constructors are different from Methods in Java?
    614. What is the purpose of using ‘this’ keyword in Java?
    615. What is Overloading in Java?
    616. What is the purpose of using Packages in Java?
    617. What is the keyword used by a Java class to inherit the properties say variables and methods of another Class?
    618. How to access the variables and methods of another Class in Java?
    619. What is Overriding in Java?
    620. Is Overriding applicable for Constructors in Java?
    621. What are the different modifiers in Java?
    622. What is the difference between default and protected access modifiers in Java?
    623. What is the difference between static and instance variable in Java?
    624. What is the difference between static and non-static methods in Java?
    625. What happens when we specify the final non-access modifier with variables and methods in Java?
    626. What is the difference between abstract classes and interfaces in Java?
    627. What is the keyword used for inheriting the interfaces in Java?
    628. How to handle exceptions in Java?
    629. What is the difference between checked and unchecked exceptions in Java?
    630. Write the code from reading the text from the file (having ten lines of text) using file handling mechanism and while loop?
    631. What is the disadvantage of Arrays and how to overcome it in Java?
    632. What is the difference between ArrayList and HashSet in Java ?
    633. What is the relationship between Iterator interface and iterator() method in Java?
    634. What are the predefined methods of HashMap, which are used for adding the value and retrieving the value in Java?
    635. 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); ?
    636. Write a Java Program to print the below output: * 1 * 12 * 123 * 1234 * 12345 * 123456 * 1234567
    637. 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?
    638. Write a Java program to print alternative elements in a String array String[] a = {“One”,”Two”,”Three”,”Four”} ?
    639. Write a Java program to find the greatest number in an integer array int[] a = {9,3,6,4,8,5} ?
    640. Write a Java program to find the least number in an integer array int[] a = {9,3,6,4,8,5} ?
    641. Is Java case sensitive?
    642. Which keyword is used for defining / creating a Class in Java?
    643. What is the method from which Java Programs starts execution?
    644. Give some examples for compile time errors in Java Programs?
    645. What is the difference between print and println statements in Java?
    646. What are the different types of comments in Java?
    647. What are the different things required for storing data in Java?
    648. What is the different data types in Java and what is their purpose?
    649. Is String a primitive data type?
    650. What are the different types of Operators in Java?
    651. What are the different flow control structures in Java?
    652. What is the difference between while and do..while loop in Java?
    653. Can we call the same method multiple times in Java?
    654. What is the keyword to be used in Java while declaring methods, when the method don’t have anything to return?
    655. What are the different types of Arrays in Java?
    656. What is the predefined variable of Arrays, which can be used to find the size of the arrays?
    657. Provide an example for using for loop with single dimensional arrays?
    658. Provide an example for using for-each loop with single dimensional arrays?
    659. What is Customized XPath?
    660. What is BDD and explain its use?
    661. What is the folder structure of your framework and explain each folder?
    662. How to create a job in Jenkins?
    663. Explain the life cycle of Maven?
    664. Explain different Git commands?
    665. How to close a Database (DB) connection ?
    666. How to handle the dynamic tables in Selenium?
    667. How to handle multiple frames in Selenium?
    668. What is Abstraction in Java?
    669. How to define elements using @FindBy annotation ?
    670. How to set the Firefox Profile in Selenium WebDriver?
    671. How do you connect to a Database (DB) in your framework?
    672. How to run the test scripts in Jenkins?
    673. How many ways we can define a String in Java?
    674. What is the difference between super and this keyword in Java?
    675. What is the difference between final and finally keywords?
    676. Can you access the private method from outside the class?
    677. How to convert Array to ArrayList and ArrayList to Array?
    678. Why static needs to be specified before variables and classes? What actually is its real time purpose/advantage?
    679. Why we have to use the synchronized block in Java?
    680. What is the difference between HashSet and TreeSet?
    681. What is the difference between public and private access modifier?
    682. What is Page Chaining Model?
    683. What is the difference between String array and Char array?
    684. Is null a keyword in Java?
    685. What are class level variables in Java?
    686. What is the default value of a boolean variable in Java?
    687. What is the default value of an integer variable in Java?
    688. What is the default value of an object in Java?
    689. What is final?
    690. How to read data from the XML files?
    691. What is JDBC and how it can be used to connect to Database?
    692. Class.forName(X). What will you write in place of X?
    693. If we write FileInputStream statements in try block, what are the statements we will write in finally block?
    694. Explain about typecasting?
    695. What is a Data Provider and what is its return type?
    696. What is the difference between JUnit and TestNG?
    697. How to handle AJAX applications in WebDriver?
    698. How to capture the bitmaps in Selenium?
    699. How many annotations are there in Testng and what are they?
    700. How to create the reusable methods for reading the data from the Excel files?
    701. How to create the reusable methods for reading the data from the XML files?
    702. What is the difference between include and exclude in TestNG?
    703. How to execute the single selected method in TestNG?
    704. How the packages and classes are structured in TestNG.xml?
    705. What are assertions and why we go for them in TestNG?
    706. Tell me a login page script in TestNG?
    707. What is the difference between @Parameters and @DataProviders in TestNG?
    708. What problems you have faced while working with TestNG?
    709. How to create Suites in TestNG?
    710. How to prioritize the tests in TestNG at Class level and Suite level?
    711. Can Selenium automate Client Server applications?
    712. What are the limitations of Selenium WebDriver?
    713. Tell me about the Selenium WebDriver architecture?
    714. How to identify the web elements?
    715. When do you go for an XPath?
    716. How to execute the tests on Firefox Browser in Selenium?
    717. What is the difference between id and name?
    718. How to handle dynamic web elements in Selenium?
    719. What is the default timeout of Selenium WebDriver?
    720. When do we use implicit and explicit waits in Selenium?
    721. How to select a date in a Calendar on a web page using Selenium?
    722. How to execute the Selenium scripts in Eclipse IDE from command prompt using ANT?
    723. How to execute the Selenium scripts on different browsers?
    724. What is the purpose of isDisplayed() function in Selenium WebDriver?
    725. What is the difference between isDisplayed() and isEnabled() functions in Selenium WebDriver?
    726. Can you test flash images in Selenium?
    727. How to verify whether an object is present on the multiple pages?
    728. How to select a third value from a drop-down field?
    729. How to get columns from a table?
    730. How many scripts are you writing and executing per a day?
    731. Which driver implementation will allow headless mode?
    732. Which reporting mechanism you have used in your Selenium projects?
    733. Why did you choose Selenium in your project, when there are so many tools?
    734. What is the difference between Java and JavaScript?
    735. How to send emails from official mail id?
    736. How do you make use of JSON files in Selenium Grid?
    737. How to pause a test execution for 5 seconds at a specific point ?
    738. Explain project, roles & Experience summary?
    739. What are the advantages of using TestNG?
    740. Can you arrange the below testng.xml tags from parent to child?
      1. <test>
      2. <suite>
      3. <class>
      4. <methods>
      5. <classes>
    741. What is the importance of testng.xml file?
    742. What is TestNG Assert and list out common TestNG Assertions?
    743. What is Soft Assert in TestNG?
    744. What is Hard Assert in TestNG?
    745. How to create Group of Groups in TestNG?
    746. How to exclude a particular test method from a test case execution using TestNG?
    747. How to exclude a particular group from a test case execution using TestNG?
    748. How to disable a test case in TestNG?
    749. How to ignore a test case in TestNG?
    750. What are the different ways to produce reports for TestNG results?
    751. How to write regular expressions in testng.xml file to search @Test methods containing “smoke” keyword?
    752. What is the time unit we specify in test suites and test cases?
    753. List out various ways in which TestNG can be invoked?
    754. How to run TestNG using command prompt?
    755. What is the use of @Test(invocationCount=x)?
    756. What is the use of @Test(threadPoolSize=x)?
    757. What does the test timeout mean in TestNG?
    758. Write a program to check whether a given number is a Prime number?
    759. Find the factorial of a given number in non recursive way?
    760. How to reverse a String?
    761. How to remove Junk or special characters in a String?
    762. How to reverse an integer?
    763. How to find missing number in an Array?
    764. How to find duplicate elements in a Java Array?
    765. How to find the smallest and largest numbers in a Java Array?
    766. Explain String manipulation in Java?
    767. Write a Java program to swap two strings without using temp or third variable?
    768. Explain stack and heap in Java for memory management?
    769. Explain SingletonDesign pattern in Java?
    770. How to achieve SingletonDesign in Selenium WebDriver?
    771. What are your roles and responsibilities as part of automation in your project?
    772. What is an interface and where you have used in your Framework?
    773. How to achieve multiple inheritance in Java?
    774. How to select an option in list box?
    775. What is an iframe and how to handle it using Selenium WebDriver?
    776. How do you count the total number of rows in a web table? 600. How to select a checkbox present in a grid?
    777. Write an xpath to find all the hyperlinks on a web page?
    778. What are the different XPath types and which XPath type you have used in your projects?
    779. An element has an id “bng_123” but its number is changing. How to handle it?
    780. How to get text from hidden elements?
    781. What is timeout in grid?
    782. What do you mean by max instance and max sessions?
    783. Is it mandatory to have the same name for Class name and Java file ?
    784. What is the difference between ArrayList and Vector?
    785. How do you write custom class which is immutable?
    786. 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?
    787. 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
    788. Suppose I want to check a particular exception in TestNG. How will you check?
    789. What are the different access modifiers in Java and explain each of them?
    790. Draw the architecture of a framework implementing Page Object Model and its uses?
    791. Suppose you have amount field which accepts 0 to 1000, write manual and automation test cases for that field.
    792. Explain the automation process followed in your company?
    793. What is the difference between Maven and TestNG?
    794. What are important Classes in WebDriver?
    795. What is Sikuli, its purpose and explain more about it?
    796. What is Robot Class and explain more about it?
    797. What is AutoIt and explain more about it?
    798. What is the difference between AutoIt, Sikuli and Robot Class?
    799. Which is best in AutoIt, Sikuli and Robot Class along with reasons?
    800. 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?
    801. Can we use AutoIt on other operating systems?
    802. Do you know any third party reporting other than testng?
    803. Can’t we execute tests parallely without using Selenium Grid?
    804. What is the difference between TestNG and Grid?
    805. How do you execute tests in Selenium Grid?
    806. How do you attach screenshot to test, which tool is using for screenshot attachment?
    807. 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?
    808. How will you read CSV file and write some sample code?
    809. Which excel files have you used in your company xls or xlsx for automation needs?
    810. What classes you will use for reading the PDF files?
    811. What is the use of pdfstripper class?
    812. What is deferred state?
    813. How many test scripts you can write per day?
    814. Which framework is used in your project?
    815. How will you send numerics in sendKeys method?
    816. Suppose a test case is given to you. How will you decide whether to automate or not?
    817. Suppose I clicked on 4 links in a page, 4 new windows got opened. How to switch to 4th window from main window?
    818. What is default content?
    819. How do you rate yourself on scale of 5 in java?
    820. How do you rate yourself on scale of 5 in selenium?
    821. What is verbose?
    822. What is thread count?
    823. When a class implements two interfaces having a common method, which interface method does the class implement?
    824. What is the flow of try, catch and finally blocks?
    825. What is finally in Java?
    826. How many values will a method return in Java?
    827. What is abstract in Java?
    828. Which design patterns have you used to develop frameworks?
    829. try block has exit method, catch block has exception and finally block is returning an int value. Can you explain the flow of execution?
    830. Have you ever come across conflict in code. How do you resolve?
    831. Can a constructor be private?
    832. Assert is an abstract or static method?
    833. What is instance block at class level and method level?
    834. What is the difference between a Class and Interface?
    835. Can we have multiple catch blocks in try catch statements in Java?
    836. Can we have multiple try blocks in try catch statements in Java?
    837. Can we have multiple finally blocks in try catch statements in Java?
    838. What is mutable and immutable?
    839. What are the types of Synchronization in Java?
    840. What are the types of Exceptions in Java?
    841. Write a code to click on a button which is inside a nested iframe?
    842. How to select a check box option which is inside a web table?
    843. There are 3 classes say A,B and C in your project. How to access the methods of B and C from A Class?
    844. What type of Jenkins server are you using in your company?
    845. What is the return type of driver.getWindowHandles() in Selenium?
    846. How do you achieve dynamic Polymorphism?
    847. What is nested Class?
    848. How will you call a protected method in a nested class?
    849. In a web page, how will you ensure that the page has been loaded completely?
    850. What is the difference between build and perform methods in Actions Class?
    851. What is the difference between @BeforeMethod and @BeforeTest method?
    852. How will you display the characters count in a String “Steve Jobs” by ignoring the spaces in between?
    853. What is a constructor and when will you use this and super in a constructor?
    854. If you want to call a constructor from parent class, what will you do?
    855. How will you run your tests using Data Driven Framework?
    856. What are static variables and methods?
    857. How will you make a build using Jenkins?
    858. How will you install ReportNG in your project?
    859. How will you retrieve the value of a particular cell in a web table?
    860. How will you handle dynamic elements using XPath?
    861. What are the Selenium tools and Testing frameworks that you have used in your project?
    862. What is the different Operating Systems that you have automated your Selenium scripts on?
    863. What is the different application domains that you have automated so far?
    864. What are the major challenges in Functional Test Automation?
    865. What are the difficulties you have faced in Object Identification?
    866. Have you conducted Data Driven Testing in any of your automation projects?
    867. Have you conducted Batch Testing in any of your automation projects?
    868. Have you conducted Cross Browser Testing in any of your automation projects?
    869. Have you handled duplicate elements on the web pages in your automation projects?
    870. How many test cases you automated in any of your Project/Module?
    871. How you organized your Test Automation resources in your Project ?
    872. Did you use any build management tools in your project?
    873. How you handled errors in your Test Scripts?
    874. Did you create any reusable components while automation any of your projects?
    875. Did you find any test scenarios that cannot be automated in your projects using Selenium?
    876. How to execute multiple Java programs at a time?
    877. How to conduct parallel test execution?
    878. Did you involve in Selenium Test Automation environment setup?
    879. What is a class and object?
    880. How to call the function of a Class without creating an object?
    881. What is HashMap? 708. How to synchronize Collection classes?
    882. Why main() is declared as static?
    883. What is the use of sleep() ?
    884. How to find invisible elements in a web page? Write some sample code?
    885. How to generate logs?
    886. How to handle dynamic changing ids or elements?
    887. What are the different methods you have seen in XPath?
    888. How to generate dynamic XPath?
    889. How to handle multiple frames in Selenium?
    890. Why Automation?
    891. When to start Automation?
    892. How to identify which scenarios needs to be Automated?
    893. What is Select Class in Selenium WebDriver and how to use it?
    894. What is Alert interface and how to use it?
    895. What is click() command in Selenium WebDriver?
    896. What is sendKeys() command in Selenium WebDriver?
    897. How to read data from properties file in Selenium?
    898. Explain your automation framework architecture?
    899. Have you conducted cross browser testing in a parallel way using TestNG?
    900. What is parameterization in TestNG?
    901. How to handle internationalization using Selenium WebDriver?
    902. What are the defects you have found while automating your application?
    903. Write a code to open application in Firefox browser?
    904. What is the difference between Call by Value and Call by Reference?
    905. How to find the length of the String without using length function?
    906. How to find out the part of the string from a string?
    907. What is data binding (Early and late binding)?
    908. 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?
    909. Explain Automation Life Cycle (ATLC) ?
    910. What are the things you have stored in PageFactory and why?
    911. Have you used any constructor in Selenium?
    912. How do you handle untrusted SSL certificate in Selenium WebDriver?
    913. How to verify a particular image out of many images on a web page and verify its size using Selenium WebDriver?
    914. How do you find out Active elements using Selenium WebDriver?
    915. What is String class and its methods?
    916. What is the difference between Selenium Grid and Selenium WebDriver?
    917. 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?
    918. What will be the logic behind fetching the data from a data provider and inserting it on UI?
    919. How will you mark as method as a data provider using TestNG annotation?
    920. How does method overriding defers from abstraction and inheritance?
    921. Why do we go for Page Object Model (POM) and what is its purpose?
    922. What is the difference between StringBuffer and StringBuilder?
    923. How will you configure Jenkins?
    924. How will you configure ANT?
    925. Why do we go for Apache POI API? What is its purpose?
    926. Write a script for a login page which is being used at your organization?
    927. Why do we use generics for getting a list of multiple elements?
    928. In what way, method overriding in polymorphism and inheritance differs with each other?
    929. What is the flow of fetching data from excel using Apache POI?
    930. Why do we provide “//” in java while fetching a path of excel?
    931. What are the types of exceptions which will appear while finding elements?
    932. What is an object array and why do we use it for data provider?
    933. What is the syntax of defining a data provider in a separate class?
    934. How will you open the URL using IE Browser in Selenium?
    935. What is up casting and down casting in Java? How will you use it in Selenium with an example?
    936. What is reflection in Java?
    937. What are abstract classes and methods in Java?
    938. What have you done to improve the performance of selenium framework?
    939. What are the parameters related to POM?
    940. How to automate a scroll bar?
    941. 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?
    942. Coding, if you are writing selenium automation code for different browsers?
    943. How do we switch from one page to another page in POM?
    944. How to parse XML files in your project?
    945. Where are you using Jenkins in your project?
    946. How do you use all your scripts locally?
    947. Where do you store all your reports?
    948. What will you do when you have more number of lines of code having repeated code?
    949. I want to take one test case report from all the executed test cases. How can we get it without using TestNG?
    950. What are the different controllers you automated in a web page?
    951. How to select a random record from a record of 1000 values?
    952. Suppose you have 3000 test data stored in an excel file? Can you use excel in this case and what are its drawbacks?
    953. Where we use HashMap in real time?
    954. What are the step for checking the JDBC connection?
    955. 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?
    956. 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?
    957. Can we use for loop in keyword driven framework?
    958. What if we don’t have locators information? Is there any method to automate?
    959. What are the basic plugins you used in Jenkins?
    960. How do you manage reports in Jenkins?
    961. 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?
    962. In how many ways, can I take keyboard inputs?
    963. Can we have main method constructor in interface?
    964. What is the command line to run TestNG batch file in command prompt?
    965. Which command retrieves the text on a web element?
    966. How do you manage the source code of your automation project?
    967. In Maven, from where the jar files will get downloaded from?
    968. In Maven, do we have to manually download and configure/update the required jar files?
    969. Why webdriver is an interface not a class? What could be the problems we face if it is a Class in Selenium?
    970. How one would do dynamic content testing using Selenium WebDriver?
    971. How one would do Ajax content testing using Selenium WebDriver?
    972. If you have more than one object repository in your project, how will your script pickup the correct object repository?
    973. Write a code to find the occurrence of sub string say “hello” in the given String say “helloslkhellodjladfjhello” ?
    974. How to run only skipped test cases in Selenium?
    975. . 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?
    976. 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?
    977. 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
    978. 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?
    979. 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?
    980. 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?
    981. How to switch from frame to main window? With syntax.
    982. 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?
    983. If submit button is contained in one of 3 frames in page, how will you handle this case?
    984. If element is loaded by taking much time, how to handle this situation in selenium?
    985. What is the problem with Thread.Sleep in code?
    986. When we execute test cases in grid where results will be stored in node or hub?
    987. 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?
    988. Is it possible to pass test data through testng.xml file, if yes how?
    989. How to run specific kind of Test cases using TestNG?
    990. What are all interfaces available in selenium?
    991. Can we execute test cases in order without using TestNG?
    992. 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?
    993. Is multilevel inheritance is possible in java? Give reason.
    994. 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?
    995. How to check whether an image is loaded correctly or not in page?
    996. Is it possible to compare two images with Sikuli?
    997. Write a code for multiple handling windows?
    998. What is Automation and Manual Testing?
    999. How to generate user-defined exceptions, write syntax?
    1000. What are the WebDriver supported Mobile Testing Drivers do you know?
    1001. What is the difference between “type” and “typeAndWait” command?
    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.

This article is written by Arun Motoori

Comments (87)