You are on page 1of 7

SELENIUM

1. Why have you used POM ?


2. Explain your project framework
3. All 8 locators - which is most used and why?
4. What are the locators that you have used in your project.
5. Write an Xpath to identify an element in the table.
6. How do you read data from Excel file?
7. You have a table with 3 columns and when the value in the first column is same as the
value in the third column You should check the checkbox in the second column. Xpath
should be in a single line.
8. How do you handle properties file write the code.
9. In the conflict dot properties file for one key you will give many values and how will you
get multiple values with one key.
10. How to handle dynamic object?
11. How to work with button which is in div tag and u have to click without using xPath.
12. Explain the Selenium Architecture
13. Difference between Selenium-IDE & Selenium RC , WebDriver
14. Difference between
WebDriver driver = new FirefoxDriver()
FirefoxDriver driver = new FirefoxDriver()
15. Difference between get(), navigate().to()
16. What is API , where it is being used
17. Difference between quit() & close()
18. How to maximize & minimize the browser
19. What is Webdriver "interface" or Class
20. What is Super interface for WebDriver
21. What is WebElement & explain all the Methods available in WebElement
22. How many locator is available in Webdriver , &
23. which locator is preferred
24. How to check whether object is available in GUI
25. How to check the text from the Ul
26. How to capture colour , height , width , font -size of the Element
27. How to get the Location of the WebElement
28. How to check whether object is selected or not ?
29. How to check whether object is enabled in GUI
30. How to delete All Cookies
31. Do we use any constructor in WebDriver
32. How to compare Image
33. How to get the WebElement height & width
34. Question on WebDriver wait statement
35. What is Synchronization
36. How to handle Synchronization wait available in web driver
37. Which wait statement will be used to wait till page load
38. How to handle dynamic object
39. Difference between thread wait , implicitly wait , explicitly wait
40. What is fluent wait
41. Question DropDown & keyboard & mouse operation
42. How to handle dropdown
43. List out all methods available in Select class
44. How to capture all the value from the dropdown
45. How to capture only Selected value from the dropdown
46. How to capture only non-selected value from the dropdown.
47. How to how with multiSelect value from the dropdown
48. How to select all the similar value from the dropdown Eg. we have multiSelect
dropdown, like automation testing , manual testing , SQL testing , java , we should all the
option which contains "testing" word
49. How to work with custom select dropdown/ auto suggest dropDown
50. How to take mouse over operation on the element
51. How to perform keyboard operation
52. How to perform "control+c"
53. Difference between build() & perform()
54. How to perform drogAndDrop Operation
55. How to perform right Click operation.
56. How to work with new Tab, new Browse-window with our getWindowHandles() method
57. How to handle Alert popup
58. How to work Calendar POP-up
59. How to work with advertisement popup
60. How to work with SSL pop-up
61. How to File Download PopUP
62. How to handle File Upload Pop-up using AutolT
63. How to Handle File Upload Pop-up using ROBOT class
64. How to Handle Browser Scroll-bar
65. How to execute java-script
66. How to work with frame-Window
67. How to Work with nested Frame
68. How to work with multiple frame
69. How many ways to work with frame
70. How to work frame , when frame does not have id & @name attribute
71. What is IllegalStateException
72. How to work with IE , Chrome browser
73. How to write xPath in IE & chrome browser
74. What is framework , Explain types of framework
75. Which framework you have used& WHY?
76. Explain framework, with components
77. What is TestNG , why it is required
78. With OUT TESTNG , what all the challenges you faced
79. Why TestNG , Why not JUNIT
1. Additional annotation
2. HTMI reporting
3. Grouping
4. Parameterization
5. Support both java , .net
6. Parallel execution
80. What is Annotation, explain all the annotation with real time Eg.
81. What is the use @BeforeTest , @AfterTest in testing.
82. What is the use @BeforeSuite , @AfterSuite in testing.
83. Explain the hierarchy of TestNG annotation.
84. What is batch execution,& how to achieve batch execution?
85. Collection multiple test is called batch , execute multiple through testing.xml?
86. Write Syntax of Xml?
87. What is batch execution,& how to achieve batch execution?
88. What is grouping execution,& how to achieve group execution?
89. What is parallel execution, & how to achieve parallel execution?
90. How to achieve CROSS browser testing using selenium @Parameter?
91. How to disable the testing test scripts
92. How to execute same test with multiple times
93. What is ASSERTION, & how many assertion you have used in your scripts , Explain with
ex.
94. What is @parameter annotation in TestNG , how to send parameter to TestNG test
95. How to execute same test with multiple data @dataProvider
96. What is the @Listener annotation in TestNG ?
97. Difference between TestNG-Listener & WebDriver Listener.
98. How to execute only failed test only , when batch execution is Done
99. How to execute dependent test-Scripts
100. Whenever we get build which test-scripts you will execute first?
101. What is SVN or GitHub?
102. What is the Role of SVN /GitHub in Automation?
103. What store & get File from SVN?
104. Why did they Name as Selenium ?
105. How to exclude a particular test method from a test case execution?
106. Explain what are the basic steps required in writing TestNG tests?
107. How to create and run testng.xml ?
108. What is the importance of testng.xml file?
109. What is TestNG Assert and list out common TestNG Assertions?
110. What is Soft Assert / Verify in TestNG?
111. What is Hard Assert in TestNG?
112. What is exception test in TestNG?
113. How to set test case priority in TestNG?
114. How to run test cases in parallel using TestNG?
115. How to disable a test case in TestNG ?
116. How to Ignore a test case in TestNG?
117. What are @Test attributes ?
118. What is the time unit we specify in test suites and test cases?
119. List out the advantages of TestNG over JUnit?
120. Explain what is Time-Out test in TestNG?
121. How to write regular expression in testng.xml file to search @Test methods containing
"product" keyword.
122. Explain what is exception test?
123. Explain what is parametric testing?
124. Explain how can you run the JUnit tests using TestNG?
125. What does @Test(invocationCount=?) and (threadPoolSize=?) indicates?
126. Mention different ways in which you can produce reports for TestNG results?
127. How to pass parameter with testng.xml file to use It In test case?
128. Explain in what ways does TestNG allows you to specify dependencies?
129. What is difference between @Factory and @DataProvider annotation?
130. How To Check If An Element Is Visible With selenium?
131. How to Wait For Element To Be Available?
132. How to Focus On A Input Element On Page ?
133. How to Overwrite Current Input Value in editable field On Page?
134. How to Mouse Hover Action To Make Element Visible Then Click?
135. How to Extract CSS Attribute Of An Element?
136. How do you check whether an element enabled or not ?, condition: there is no such
attribute as "disabled" in the element ?
137. Why do we write Webdriver driver = new FirefoxDriver(), why not SearchContext driver =
new FirefoxDriver() ?
138. Is it possible to automate captcha ?
139. What is the advantages of SVN?
140. What is Maven/ ANT
141. What is Role of Maven FrameWork
142. What is dependencies , how to handle dependencies in framework ?
143. What of Project Object Model [POM .xml] ?
144. Explain the maven Plugin you used in your framework ?
145. How to Execute TEstNG.xml in Maven POM.xml
146. What is Jenkins ?
147. What is the Role of Jenkins in Framework
148. What is the Advantages of Jenkins?
149. How to configure Jenkins?
150. Difference between xPath & css-selector
151. Where we have used contractor in selenium
152. How to execute Java-scripts in Selenium , or how to work with browser scroll bar
153. How to handle SSL popup in IE
154. What is use Selenium-Grid
155. What is the Use Desired Capabilities in SELENUM.
156. Name a non-automatable test case in your Project.
157. What is Automation ?
158. What is meant by Automation in software testing ?
159. Why do we need automation in software testing ?
160. When to do automation testing ?
161. Which type of testing can be Automated ?
162. What are the advantages and disadvantages of Automation Testing ?
163. What is Selenium ?
164. What is the cost of Selenium ?
165. What are the main components / flavors of Selenium ?
166. What tests can selenium do ?
167. What are the advantages and disadvantages of selenium ?
168. Name some browsers that support Selenium ?
169. Operating systems that support Selenium..
170. Programming languages that support Selenium(with RC)..
171. Name some test automation tools.
172. Why you have chosen 'selenium' as your automation tool ?
173. Name some open source tools other than Selenium ?
174. Compare Selenium with QTP
175. What do you think of Performance Testing?
176. Which tool you have used for 'Performance Testing' ?
177. What is the difference between assert and verify ?
178. Difference between waitFor and pause commands ?
179. How is Selenium different from commercial browser automation tools?
180. What are the set of tools available with Selenium?
181. Which language is used in Selenium IDE?
182. What is Selenium 1.0?
183. What are the element locators available with Selenium which could be used to locate
elements on web page?
184. What is Selenium 2.0? I have heard this buzz word many times.
185. Why are two tools being combined as Selenium 2.0, what’s the gain?
186. So everyone is going to use Selenium 2.0?
187. So how do I specify my browser configurations with Selenium 2.0?
188. How is Selenium 2.0 configuration different than Selenium 1.0?
189. Can you show me one code example of setting Selenium 2.0?
190. Which web driver implementation is fastest?
191. What all different element locators are available with Selenium 2.0?
192. How do I submit a form using Selenium?
193. Can I simulate pressing key board keys using Selenium 2.0?
194. How do I clear content of a text box in Selenium 2.0?
195. How do I select a drop down value using Selenium2.0?
196. How about handling frames using Selenium 2.0?
197. Can I navigate back and forth in a browser in Selenium 2.0?
198. What is the order of fastest browser implementation for WebDriver?
199. Is it possible to use Selenium RC API with Selenium 2.0?
200. Can you show me one example of using Selenium 1.0 in Selenium 2.0?
201. I had support of lots of browsers while using Selenium 1.0 and it seems lacking with
Selenium 2.0, for example how do I use < awesome> browser while using Selenium 2.0?
202. Are there any limitations while injecting capabilities in WebDriver to perform tests on
a browser which is not supported by WebDriver?
203. Can I change User-Agent while using FF browser? I want to execute my tests with a
specific User-Agent setting.
204. Is there any difference in XPath implementation in different WebDriver
implementations?
205. My application uses ajax highly and my tests are suffering from time outs while using
Selenium 2.0.

GENERAL
1. Tell me about yourself.
2. What are your roles and responsibilities in the project.
3. What is TestYantra?
4. Are u currently involved in any project?
5. What is that you r doing at TestYantra?
6. Roles and responsibilities in office.
7. Does TestYantra send only for interviews?
8. When they have internal project y r u looking for a job change?
9. What do Test Yantra do?

1. Questions on Project
 When do you execute your framework?
 How do you review test script?
 No of screens in your project
 Total no. of testcases
 Total no of test scripts.
 No. of scripts written by you.
 No of modules
 No of Test cases for each screen
 No of smoke Testcases and regression testcases.
 Time taken for execution of the test scripts
 What is your team size
 No of people in your project
 Testing team size
2. What are your strength?
3. What are your weaknesses?
4. What are challenges faced in your project?
5. Tell me an incident where you had an dischord with your teammate?(Atleast be ready
with 3 incidents)
6. Tell me an incident where you have to stretch yourself?
7. What are the environments you had in your project?
8. Type of project(upstream/Downstream)

FRAMEWORK QUESTIONS
1. Explain your framework?
2. Which framework have you worked on?
3. Write framework folder structure?
4. What are the tools you are using in tour framework?
5. Give an example where you have used listeners in your project ?
6. How to rerun a failed test in your framework ?
7. How do you achieve 100% automation in your framework ?
8. How did you handle information logging in your framework ?
9. How do you handle Actions class in your framework ?
10. Did your framework support custom locators ?
11. Where do you keep the files(property file,excel file) in your frameworks and why ?
12. Did you automate the test case related with tabs and keys as which is important when user
does not have mouse ?
13. Best way to reduce the code duplication in your framework ?
14. Do you read Locator values from the properties file ?
15. How do you set up a machine only to run in firefox in selenium grid?
16. How do you capture screenshot when url changes ?
17. How do you handle web table in your framework ?
18. Do you use inheritance in your framework ?
19. How do you open firefox without any browser history ?
Ans: By default firefox opens with no browser history

You might also like