Pearson VUE / PSI Exam center: +917339174555 Hire From Us: +917339173555

Selenium Interview Questions and Answers

Selenium Interview Questions and Answers

Selenium Interview Questions and Answers

Selenium Interview Questions and Answers for beginners and experts. List of frequently asked Selenium Interview Questions with answers by Besant Technologies. We hope these Selenium interview questions and answers are useful and will help you to get the best job in the networking industry. This Selenium interview questions and answers are prepared by Selenium Professionals based on MNC Companies expectation. Stay tuned we will update New Selenium Interview questions with Answers Frequently. If you want to learn Practical Selenium Training then please go through this Selenium Training in Chennai and Selenium Training in Bangalore

Best Selenium Interview Questions and Answers

Besant Technologies supports the students by providing Selenium interview questions and answers for the job placements and job purposes. Selenium is the leading important course in the present situation because more job openings and the high salary pay for this Selenium and more related jobs. We provide the Selenium online training also for all students around the world through the Gangboard medium. These are top Selenium interview questions and answers, prepared by our institute experienced trainers.

Selenium interview questions and answers for the job placements

Here is the list of most frequently asked Selenium Interview Questions and Answers in technical interviews. These questions and answers are suitable for both freshers and experienced professionals at any level. The questions are for intermediate to somewhat advanced Selenium professionals, but even if you are just a beginner or fresher you should be able to understand the answers and explanations here we give.

Q1. What is the difference between verification and validation?

Q2. What are all the Testing types we can able to perform using with Automation Testing tool?

Q3. Automation Testing Lifecycle?

Q4. What is Selenium?

Q5. List out the Selenium Components?

Q6. Difference between Selenium & QTP?

Q7. What are all the collections concepts mainly will use in selenium?

Q8. Advantages of Automation Framework?

Q9. How to handle Alerts in Selenium?

Q10. Explain about Framework using in your project?

Q11.What is TestNG Data Provider? Write a Syntax for it?

Q12. What are Exception and Error? Specify the Difference.?

Q13. Why Exception Handling important in Selenium?

Q14. Most Common Exceptions Which We Notice In Selenium WebDriver?

Q15. Explain the difference between Absolute XPath and relative XPath?

Q16. How to handle Ajax calls?

Q17. How to handle Ajax calls?

Q18. How do you execute your framework from command prompt?

Q19.Difference between WebDriver Listener and TestNG listener.

Q20. How you will find the row count and column Count in dynamic web table?

Q21. How you will get the title of the page?

Q22. How you will get the current URL of the page?

Q23.How to achieve synchronization process in Selenium WebDriver?

Q24. What are all the Wait conditions in Selenium? Difference between implicitly Wait, Explicitly Wait and Fluent Wait?

Q25. How to Handle 2 Frames?

Q26. Explain About Maven concept?

Q27. Why Jenkins and Selenium?

Q28. How to capture the color of Web Element or text color in WebDriver?

Q29. How to handle 2 windows or explain window handling.

Q30. Difference between ANT and MAVEN?

Q31. What is latest version of Selenium WebDriver?

Q32. How to Upload the file in selenium?

Q33. List out some TestNG Annotations.?

Q34. How you will share your output to managers?

Q35. How to merge all your team members’ code and how you will run?

Q36. How to read and Write the Data from Excel Sheet?

Q37. What is the difference between xpath and css selector?

Q38. Explain Testng.xml structure. ( Suite-> Test> Classes>Class)?

Q39. What are all the challenges you have faced while doing the Automation.?

Q40. WebDriver is interface or class?

Q41. Firefox Browser is interface or class?

Q42. Syntax to declare chrome browser and Gecko driver and Firefox Browser and IE browser?

Q43. Write a Syntax for Drag and Drop?

Q44. Write Syntax for Mouse Hover Element?

Q45. Write Syntax for Double Click?

Q46. Write Syntax for Right Click?

Q47. Difference between Apache POI and Jxl jar files?

Q48. What are all the element locators in Selenium?

Q49. Which is more preferable xpath or CSS?

Q50. How to find out all the links in webpage?

Q51. How we will configure the Parallel browser testing in testng.xml?

Q52. Explain about TestNG – its listeners?

Q53. Write a Syntax to take the screenshot?

Q54. How to find out all the frames in a webpage?

Q55. How to handle cookies?

Q56. What is Selenium Grid?

Q57. Difference between find elements and find element?

Q58. Explain about softAssert and HardAssert?

Q59. How to Start Jenkins in command Promt?

Q60. What is the latest version of Jenkins?

Q62. What is the default port for selenium Grid?

Q63. Selenium advantages and disadvantages?

Q64. From Which selenium version onwards –we have to use gecko driver for firefox?

Q65. How to Handle Dropdown Values in selenium. Write a syntax and types to handle the dropdpwn Box?

Q66. When will you get element not clickable exception in Selenium?

Q67. How to solve Not connected Exception – unable to connect to host in selenium webdriver?

Q68. What is Selenium?

Q69. What is Selenium IDE, WebDriver, and Grid?

Q70. What are the locators available in WebDriver?

Q71. How to launch Firefox, Chrome, IE browser using WebDriver?

Q72. How to set System Property in WebDriver?

Q73. How to find font color of Text element?

Q74. How to find size of the Image?

Q75. How to find Dynamic Web Elements?

Q76. How to skip a test case in JUnit?

Q77. How to skip a test case in TestNG?

Q78. How to find whether an element is a Multidrop down or not?

Q79. What is the difference between getText() and getAttribute() ?

Q80. How to select value in a dropdown?

Q81. What is the difference between driver.close() and driver.quit() command?

Q82. How to handle Javascript Alerts or web-based pop-ups?

Q83. How to capture screenshot in WebDriver?

Q84. Write a code to login into any site showing uthentication pop-up for username and password?

Q85. How do you send ENTER key?

Q86. How do you access Firefox profiles in WebDriver?

Q87. What are the different types of Waits or Synchrinization commands in WebDriver?

Q88. Write a syntax to scroll down a page in selenium?

Q89. How to check if text is present on a web page?

Q90. What are the different exceptions in Selenium web driver?

Q91. How to handle MouseHover?

Q92. How to handle Frames?

Q93. How to switch from child frame to parent frame?

Q94. Explain how to switch back from a frame?

Q95. What is the difference between “/” and “//”

Q96. What is the difference between Assert and Verify in Selenium?

Q97. What is the super interface of WebDriver?

Q98. How many ways can we load a web page?

Q99. How can we maximize browser window and delete cookies in Selenium?

Q100. How to handle hidden elements in Selenium WebDriver?

Q101. List some scenarios which we cannot automate using Selenium WebDriver?

Q102. How to Upload a file in Selenium WebDriver?

Q103. How to set test case priority in TestNG?

Q104. What is the default port used by Hub in Selenium Grid?

Q105. How do u get the width of the textbox?

Q106. Is WebElement an interface or a class ?

Q107. What is the default port used by Node in Selenium Grid?

Q108.What is Driver?

Q109.XPath types and its usage related to tables?

Q110.Upload and download using AutoIt?

Q111.How to handle IE popup window?

Q112.What is framework on your understanding?

Q113.How testdata are used in selenium?

Q114.How the scripts know whether the file is downloaded or not?

Q115.Why thread.sleep is not preferred?

Q116.What is MSTest & how it is different from nunit?

Q117.How screenshot are added to the failed testcases?

Q118.What is reporting in selenium?.

Q119.Is it mandatory to call assertAll() method when comparing expected and actual result in selenium.?

Q120.What happens when you add statements after calling “assertAll()” method when comparing the expected and actual results in selenium.?

Q121.How do you perform “SaveAs” operation when writing data into excel file.?

Q122.How do you perform “SaveAs” operation when writing data into excel file.?

Q123.How do u handle dynamic link without partial linkText.?

Q124.what is the difference between cssSelector and xpath.?

Q125.How do you enter the text into the current textbox or How do you find the current focused element.?

Q126.what are the different ways of clicking on a button.?

Q127.How do you handle frames.?

Q128.Can you give a selenium example for method overloading.?

Q129.How do you handle Drop down menu.?

Q130.How do you handle context menu.?

Q131. Under which package “Actions” class is present.?

Q132. Which method we must call whenever we call any method of actions class.?

Q133.what are the uses of Actions class?

Q134.Can we inspect JavaScript Pop-up.?

Q135.How do you handle the JavaScript Pop-up.?

Q136.When Hidden division pop-up is displayed.?

Q137.Give an example for hidden division pop-up.?

Q138.How do you upload the file using relative path.?

Q139.When do we get invalidElementStateException.?

Q140.What is window handle and how to get it.?

Q141.What is the difference between getWindowHandle() and getWindowHandles().?

Q142.How do you close all the browsers without using Quit method.?

Q143.From Which package SELECT class should be imported.?

Q144.How do you identify whether the list box is single select or multi select list box.?

Q145.When do we get UnsupportedOperationException.?

Q146.How to get the options from the list box.?

Q147.What is the meaning of StaleElementReferenceException.?

Q148.When do we get ?

Q149.Why do we use POM pattern in selenium.?

Q150.If you do not use initElements() method of PageFactory class, what kind of exception do you get.?

Q151.What is the syntax of initializing the elements in POM class.?

Q152.Will @FindBy Annotation allow us to use variable in place of locator value.?

Q153.How do you execute ‘AutoIT’ script from Selenium?

Q154.If we use DataProvider How many parameters accepted by the text method.?

Q155.How do you receive different types of data from DataProvider.?

Q156.what is the default execution status of testNg test method.?

Q157.How do you re-run failed test classes in TestNG.?

Q158.Which exception do we get if the Specified sheet name, row index or cell index is invalid while handling excel files.?

Q159.How do you check whether the excel cell has string/numeric value.?

Q160.How do you execute testng.xml file from pom.xml file.?

Q161.What is the difference between Java Project and Maven Project - with respective to Automation framework.?

Q162.What are the characteristic of Hidden Division Pop-up. And how do you handle it.?

Q163.Swap the given two numbers without using a third variable.?

Selenium with Java Interview Questions and Answers

Q1. What is Java?

Q2. Why is Java a platform Independent?

Q3. Is java a pure Object-oriented?

Q4. What is a class in Java?

Q5. What do you mean by Object in Java?

Q6. What is loop in java and what are the diffrent types of loops?

Q7. What are the pillars of Object-Oriented program?

Q8. What is Inheritance?

Q9. What is Polymorphism?

Q10. What is method overloading?

Q11. What is method overriding?

Q12. What is Constructor?

Q13. What are local and class variables?

Q14. What is abstraction in Java?

Q15. What is Encapsulation?

Q16. What is an Array?

Q17. What are the diffrent Access modifiers availabe in Java?

Q18. What is the difference between Array and ArrayList?

Q19. What is FileInputStream in Java?

Q20. What is FileOutputStream in Java?

Q21. How you handle the Exception in Java?

Q22. Write a program to print Fibonacci Series up to count 10?

Q23. Write a program to add two matrices?

Q24. Write a program to swap two numbers without using the third variable?

Q25. Write a Java program to find the sum of digits?

Q26. What is Selenium?

Q27. What are the components of Selenium?

Q28. What are the limitations of Selenium?

Q29. What are the diffrent types of locators in Selenium?

Q30. What is the difference between '/' and '//' in xpath?

Q31. Why do you prefer selenium tool for automation?

Q32. What are soft assert and hard assert?

Q33. What are the exceptions you faced in Selenium?

Q34. What are the different types of waits available in Selenium?

Q35. How to get a text of a web element?

Q36. What is the difference between driver.get() and driver.navigate.to(“url”)?

Q37. What are the different types of navigation commands?

Q38. How you will delete the cookies in Selenium?

Q39. How to handle multiple windows in Selenium?

Q40. What is the difference between driver.close() and driver.quit() methods?

Q41. How do you handle mousehover, doubleclick and draganddrop in Selenium?

Q42. What is TestNG?

Q43. What are the advantages of TestNG?

Q44. What are the annotations available in TestNG?

Q45. What is the use of testng.xml?

Q46. What is cucumber?

Q47. What is feature file?

Q48. What are the advantages of Cucumber?

Q49. What are the comonly used TestNG Asserts?

Q50. How do you set a priority of test cases in TestNG?

Q51. Give the example of TestRunner in Cucumber?

4 Comments
  1. Really nice and helping to the users. I appreciate and request you to post more questions with the exact answers.

  2. This is a very good collections of interview questions and it helps to increase the remainder knowledge to the all topics.

  3. It is very useful to crack the interviews while i am studying this i got a confident to clear the interviews. Now i got a job in selenium in a very good core company.

  4. Excellent besant. This one is very useful to me clear the interview and this is my kind request please keep on posting

Comments are closed.

Besant Technologies – Chennai & Bangalore Branch Locations

Besant Technologies - Velachery Branch
Plot No. 119, No.8, 11th Main road, Vijaya nagar,
Velachery, Chennai - 600 042
Tamil Nadu, India
Landmark - Reliance Digital Opposite Street
+91-996 252 8293 / 996 252 8294

Besant Technologies - Tambaram Branch
No.2A, 1st Floor, Duraisami Reddy Street,
West Tambaram, Chennai - 600 045
Tamil Nadu, India
Landmark - Near By Passport Seva
+91-996 250 4283

Besant Technologies - OMR Branch
No. 5/318, 2nd Floor, Sri Sowdeswari Nagar,
OMR, Okkiyam Thoraipakkam, Chennai - 600 097
Tamil Nadu, India
Landmark - Behind Okkiyampet Bus Stop,
+91-887 038 4333

Besant Technologies - Porur Branch
No. 180/84, 1st Floor, Karnataka Bank Building
Trunk Road, Porur,
Chennai - 600 116
Tamilnadu, India
Land Mark: Opposite to Gopalakrishna Theatre
+91-996 252 8294

Besant Technologies - Anna Nagar Branch
Plot No:1371, 28th street kambar colony,
I Block, Anna Nagar ,
Chennai - 600 040
Tamil Nadu, India
Landmark - Behind Reliance Fresh
+91-984 025 8377

Besant Technologies - T.Nagar Branch
Old No:146/2- New No: 48,
Habibullah Road,T.Nagar,
Chennai - 600 017
Tamil Nadu, India
Landmark - Opposite to SGS Sabha
+91-734 914 0003

Besant Technologies - Thiruvanmiyur Branch
22/67, 1st Floor,
North mada street, Kamaraj Nagar
Thiruvanmiyur, Chennai 600041
Tamil Nadu, India
Landmark - Above Thiruvanmiyur ICICI Bank
+91-887 038 4333

Besant Technologies - Siruseri Branch
No. 4/76, Ambedkar Street,
OMR Road, Egatoor, Navallur,
Siruseri, Chennai 600130
Tamil Nadu, India
Landmark - Near Navallur Toll Gate, Next to Yamaha Showroom
+91-7338810550

Besant Technologies - Maraimalai Nagar Branch
No.37, 1st Floor,
Thiruvalluvar Salai,
Maraimalai Nagar,Chennai 603209
Tamil Nadu, India
Landmark - Near to Maraimalai Nagar Arch
+91-979 123 7373

Besant Technologies - BTM Layout Branch
No 2, Ground floor,
29th Main Road, Kuvempu Nagar,BTM Layout 2nd Coming from Silkboard, take left at AXA company signal,
Stage, Bangalore - 560 076
Karnataka, India
Landmark - Next to OI Play School
+91-762 494 1772 / 74

Besant Technologies - Marathahalli Branch
No. 43/2, 2nd Floor, VMR Arcade,
Varthur Main Road, Silver Springs Layout,
Munnekollal, Marathahalli, Bengaluru - 560037
Karnataka, India
Landmark - Near Kundalahalli Gate Signal
+91-910 812 6341 / 910 812 6342

Besant Technologies - Rajaji Nagar Branch
No. 309/43, JRS Ecstasy, First Floor,
59th Cross, 3rd Block, Bashyam Circle,
Rajaji Nagar, Bangalore - 560 010
Karnataka, India
Landmark - Near Bashyam Circle
+91- 734 916 0004

Besant Technologies - Jaya Nagar Branch
No. 2nd Floor,1575,11th Main Road,
4th T-Block, Pattabhirama Nagar, Jaya Nagar,
Bangalore-560041
karnataka, India
Land Mark: Opposite to Shanthi Nursing Home
+91-733 783 7626

Besant Technologies - Kalyan Nagar Branch
No.513, 4th Cross Rd
2nd Block, HRBR Layout, Kalyan Nagar,
Bangalore-560043
karnataka, India
Land Mark: Opposite to kalayan nagar Axis Bank
+91-979 144 0888

Besant Technologies - Electronic City Branch
No. 7, 3rd Floor, Ganga Enclave,
Neeladri Road, Karuna Nagar, Doddathoguru Village,
Electronics City Phase 1, Electronic City,
Bangalore - 560100, karnataka, India
Land Mark: Adjacent to HDFC Bank and State Bank Of India
+91-782 392 2182

Besant Technologies - Indira Nagar Branch
No.54, 1st Floor,
5th Main kodihalli,
Bengaluru, Karnataka 560008, India
Landmark: Behind Leela Palace Hotel,
+91-782 392 2182

Besant Technologies - HSR Layout Branch
Plot No. 2799 & 2800, 27th Main,
1st Sector, HSR Layout,
Bengaluru, Karnataka 560102, India
+91-733 783 7626

Quick Enquiry