Sunday, 3 December 2017

Popular Selenium Interview Questions

1. Explain the Selenium Architecture
2. Difference between Selenium-IDE & Selenium RC, WebDriver?
3. Difference between WebDriver driver = new FirefoxDriver() and FirefoxDriver driver = new FirefoxDriver()?
4. Difference between get(), navigate().to()?
5. What is API, where it is being used?
6. Difference between quit() & close() ?
7. How to maximize & minimize the browser?
8. What is webdriver "interface" or Class?
9. What is the Super interface for WebDriver?
10. What is WebElement & explain all the Methods available in WebElement?
11. How many locators are available in Webdriver, & which locator is preferred?
12. How to check whether the object is available in GUI?
13. How to check the text from the UI?
14. How to capture color, height, width, font —size of the Element the Element?
15. How to get the Location of the Web element?
16. How to check whether the object is selected or not?
17. How to check whether the object is enabled in GUI?
18. How to delete All Cookies?
19. Do we use any constructor in Webdriver?
20. How to compare Image?
21. How to get the web element height & width?
22. What is Synchronization?
23. How to handle Synchronization wait available in Webdriver?
24. Which wait statement will be used to wait until page load?
25. How to handle dynamic object?
26. Difference between thread wait, implicitly wait, explicitly wait?
27. What is the fluent wait?

28. How to handle drop-down?
29. List out all methods available in Select class?
30. How to capture all the value from the drop-down?
31. How to capture only Selected value from the drop-down?
32. How to capture only non-selected value from the drop-down?
33. How to deal with the multi-select value from the drop-down?
34. How to select all the similar value from the drop-down?
EG we have multi-select drop-down, like automation testing, manual testing, SQL testing, Java, we should all the option which contains "testing" word
all the option which contains "testing" word
35. How to work with custom select dropdown/ autosuggest dropDown?
36. How to take mouse over operation on the element?
37. How to perform keyboard operation?
38. How to perform "control+c" ?
39. Difference between build() & perform() ?
40. How to perform drogAndDrop Operation?
41. How to perform the right click operation?

42. How to work with new Tab. new Browse-window?
43. How to work with new Tab, new Browse-window without GetWindowHAnles()method?
44. How to handle Alert popup?
45. How to work Calender POP-up?
46. How to work with advertisement popup?
47. How to work with SSL pop-up?
48. How to File Download PopUP?
49. How to handle File Upload Pop-up using AutoIt?
50. How to Handle File Upload Pop-up using ROBOT class?
51. How to Handle Browser Scroll-bar?
52. How to execute javascript?

53. How to work with frame-Window?
54. How to Work with nested Frame?
55. How to work with multiple frames?
56. How many ways to work with the frame ?
57. How to work frame, when the frame does not have id & @name attribute?

58. What is IllegalState Exception?
59. How to work with IE, Chrome browser?
60. How to write XPath in IE & chrome browser?

61. What is the framework , Explain types of the framework?
62. Which framework you have used& WHY?
63. Explain framework, with components?

64. What is TestNG, why it is required?
65. WithOUT TESTING, what all the challenges you faced?
66. Why TestNG, Why not JUnit?
67. What is Annotation, explain all the annotation with real-time.
68. What is the use @beforeTest, @afterTest in testing?69. What is the use @beforeSuite @afterSuite in testing?
70. Explain the hierarchy of TestNG annotation?
@beforeSuite
@beforeTest
@beforeClass
@beforeMethod
@test
71. What is batch execution,& how to achieve batch?
72. Write Syntax of XML
<suite>
<test>
<classes>
<class>
73. What is grouping execution,& how to achieve group execution?
74. What is parallel execution, & how to achieve parallel execution?
75. How to achieve CROSS browser testing using Selenium?
76. How to disable the testing test scripts
77. How to execute the same test with multiple times
78. What are ASSERTION, & how many assertions you
79. What is @parameter annotation in TestNG, how to send parameter to TestNG test
80. How to execute the same test with multiple data @dataprrovider
81. What is the @Listner annotation in TestNG
82. Difference between TestNG-Listener & web driver Listener TestNG Lis: ITestListner WebDriver List: EventFiringWebDriver
82. How to execute only failed test only, when batch execution is Done After the batch execution "refresh the folder": than automatically we get testing-failed.XML (inside test-output), just the that XML file
83. How to execute dependent test-Scripts 2 ways Priority dependencies
84. How to execute failed test multiple times ITestREtry
85. Whenever we get build which test-scripts, you will execute first Using grouping concept, we will execute smoke test first

86. What is SVN or GitHub?
87. What is the Role of SVN /Github in Automation
88. What store & get File from SVN

89. What are the advantages of SVN

90. What is Maven/ ANT
91. What is Role of Maven FrameWork
92. What are dependencies, how to handle dependencies in framework
93. What of Project Object Model [POM .xml]
94. Explain the Maven Plugin you used in your framework
95. How to Execute TEstNG.xml in Maven POM.XML

96. What is Jenkins
97. What is the Role of Jenkins in Framework
98. What are the Advantages of Jenkins
99. How to configure Jenkins
100. Difference between XPath & CSS-selector
101. Where we have used contractor in selenium
102. How to execute Java-scripts in Selenium, or how to work with browser scroll bar
to work with browser scrollbar
103. How to handle SSL popup in IE
104. What is use Selenium-Grid
105. What is the Use DEsiredCapabalites in SELENIUM
106. Nonautomatable test case in your Project

107. The logic to find whether the number is prime or not.
108. String comparison of two strings. (==)
109. Defect life cycle
110. Selenium code to open some browser and typing something in the text field.
111. Handling the Dynamic Checkboxes inside a table.
112. Selenium code to reboot the system?
113. How to get a multiple data are from excel file?an example list of 10 first name and Lastname?where and how you will pass the values?explain with logic and code?
114. How to get delimiters(@,":&#) from a text file?
115. What’s testing?
116. what is need of automation
117. what is your daily work on your project?
118. what is traceability matrix
119. how many time you have review test cases?
120. what is build verification testing?
121. how initializing object and variable?
122. how get the actual Page Title?
123. How you will configure your project?
124. Which type of test cases should convert in Automation test cases?
125. which version of selenium you have used in your project?
126. what are your responsibilities described in the test plan?
128. what is testing?
129. after overall testing activity you can say your application bug-free?
130. when testing stop?
131. what is the name of bug tracker which is used in your company?
132. when u will find a bug what will be stated bug at reporting time in your bug tracker?
133. when you will change the state of the bug as ‘reopen’?

134. what is testing ?what is need of need of testing ….
135. What is the smoke testing?
136. what is bang big method.?
137. what is a benefit to writing the test cases?
138. what are differences between retesting and regression testing?
139. what’s differences between findElement() and findElements()?
140. write the code to get URL of the link in selenium?
141. write a code get the page title..?


142. what is get() & navigate()?
143. how can u right click?
144. How can u refresh?
145. how can u send a screenshot through selenium?
146. gave an expression & asked me finding the XPath?
147. How can u implement the framework in our project?
148. What is the scope of implicitly wait?
149. How can you find rows from a webpage? what is the method you used?
150. What is method overloading?
151. What is method overriding?
152. what is polymorphism?
153. what is the difference between array & ArrayList?
154. What do u mean by mutable & string is mutable or not?
155. Difference between StringBuffer & StringBuilder
156. What is Interface & abstract class? Difference between them?
157. What is Type Casting? Give example?
158. Which collections are u used in your project?
159. Write a program for string reverse?

160. What is design pattern used for the Framework based
Ans: Singleton

161.How to take screen Shot at selenium code for failed Test Case.


162.How do u configure only Required Testcases for running the TestNG suit in XML?
add only required TestNG classes or create a Group and specify it

163.Difference between selenium RC, Selenium Web Driver, Selenium Core?
164.How to get the data from the excel sheet?
165.What is non-functional testing?
166. What is Regression Testing? 
167. How do u know that a webpage is fully loaded with the java code?
WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("http://www.fatcow.com/");
                   
 JavascriptExecutor js=(JavascriptExecutor)driver;
 String state = (String) js.executeScript("return document.readyState");
 System.out.println(state);

168.why automation
169.different locators
170.program to log in to any webpage
171.web element methods

172. how many locators are there what are they?
173. how you will identify the locators in web page?
174. how you will find out the colour of the text?
175. If parent browser having one field and child browser having one field how u will compare and check
176. 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.
177. inheritance topics
178. diff btwn testng and junit.
179. wat is diff btwn testng and junit?
180. wat r the challenges u faced in ur project?
181. is framework needed? y? can we run scripts with out using frame work yes or no?
182. wat is assertion? wat is the drawback? instead of that wat we use to overcome?
183. wat is globalization testing? localization testing?
184. wat is stlc?
185. bug life cycle? xplain hierarchy?
186. whch tool u used for defect tracking?
187. wat is nested class? enum?
188. wat is implicitly wait()? explicitly wait()? difference? where we use it?
189  how u traverse from child browser to parent browser?
190. if  parent browser have 4 child browsers how u will get the order which 1 is first?
191. how u will handle window popups?
192. wat is polymorphism? method overloading and method over riding?
193. how many test cases u wrote?
194. wat is hybrid frame work? explain hybrid frame work?
195.write  automation code for Frame?
196.driver.switch to(). frame(Element);
197.define keyword rewan framework?
198.define hybrid rewan framework?

199. Where we can store xpath or other locator value , (like object repository in qtp)
200. why we can not use CSS selector instead of xpath.
201. what is difference between @Before Method and @before Test
202. what is diffrence between @After Method and @After Test

No comments:

Post a Comment

Appium Chapter-3: Understanding the Desired Capabilities

  Desired Capabilities help us to configure the Appium server and provide the criteria which we wish to use for running our automation scrip...