Selenium Automation Tutorial

The following are the different contents in our Selenium Test Automation Tutorial:


Introduction to Selenium


  1. What is Selenium?

  2. What are the prerequisites required for learning Selenium?
  3. What are the different components or tools of Selenium?
  4. Selenium is an Open Source and Free Test Automation Tool
  5. What types of Applications that Selenium can and cannot Automate?
  6. What are the different browsers supported by Selenium?
  7. What are the different programming languages supported by Selenium?
  8. What are the different operating systems supported by Selenium?
  9. What is SeleniumHQ?
  10. What are the different versions of Selenium?
  11. The History of Selenium
  12. How Selenium got its Name?
  13. What types of Testing can be automated using Selenium?
  14. 15 Advantages or Benefits of using Selenium Test Automation Tool
  15. 20 Disadvantages of limitations of using Selenium

HTML Basics for Selenium


  1. What is HTML (Introduction)?
  2. HTML Elements, Tags, Attributes and Enclosed Text
  3. HTML Structure
  4. Adding Title to the HTML Web Page
  5. Adding Paragraphs to the HTML Web Page
  6. Adding Bold Text to the HTML Web Page
  7. Displaying different sizes of heading on HTML Web Page
  8. Adding links to HTML Web Page
  9. Adding Ruler to HTML Web Page
  10. Adding Image to HTML Web Page
  11. Adding line breaks in the HTML Web Page
  12. Adding Paragraphs to the HTML Web Page
  13. Adding Italic Text to the HTML Web Page
  14. Adding Underlined Text to the HTML Web Page
  15. Adding Table to the HTML Web Page

Locators for Selenium


  1. What are Locators?
  2. Different types of Locators?
  3. Demonstrating ID Locator
  4. Demonstrating Name Locator
  5. Demonstrating Class Name Locator
  6. Demonstrating Link Text Locator
  7. Demonstrating CSS Selector Locator
  8. Demonstrating XPath Expression Locator
  9. Demonstrating DOM Locator
  10. Locators Priority
  11. About ID Locator in detail
  12. More details about Name, Class Name, and Link Text Locators

XPath Expression Locators in Detail


  1. What is an XPath?
  2. Hierarchy of HTML Source code
  3. Types of XPath Expressions
  4. Practice Absolute XPath Expressions in detail here
  5. Advantages and Disadvantages of Absolute XPath Expressions
  6. Practice Relative XPath Expressions in detail here (Part 1)
  7. Practice Relative XPath Expressions in detail here (Part 2)
  8. Practice Relative XPath Expressions in detail here (Part 3)
  9. Practice Relative XPath Expressions in detail here (Part 4)
  10. Practice Relative XPath Expressions in detail here (Part 5)
  11. Practice Relative XPath Expressions in detail here (Part 6)
  12. Practice Relative XPath Expressions in detail here (Part 7)
  13. Usage of Wild Cards in XPath Expressions
  14. Using XPath Expressions with HTML Tables
  15. XPath Functions
  16. Using text() XPath Function
  17. Using contains() XPath Function
  18. Using starts-with() XPath Function
  19. Using last() XPath Function
  20. Using position() XPath Function
  21. XPath Axes
  22. following XPath Axes
  23. preceding XPath Axes
  24. following-sibling XPath Axes
  25. preceding-sibling XPath Axes
  26. parent XPath Axes
  27. child XPath Axes
  28. ancestor XPath Axes
  29. descendant XPath Axes
  30. Advantages of Relative XPath Expressions over Absolute XPath Expressions

CSS Selectors Locators in Detail


  1. What is a CSS Selector?
  2. Types of CSS Selectors
  3. Practice Absolute CSS Selectors in detail here
  4. Practice Relative CSS Selectors in detail here (Part 1)
  5. Practice Relative CSS Selectors in detail here (Part 2)
  6. Practice Relative CSS Selectors in detail here (Part 3)
  7. Using first-child in CSS Selectors
  8. Using last-child in CSS Selectors
  9. Using nth-child in CSS Selectors
  10. Using comma and asterisk symbols in CSS Selectors
  11. Using starts with (^), ends with ($) and contains (*) in CSS Selectors
  12. Using not in CSS Selectors
  13. Using Follow Sibling (+) in CSS Selectors
  14. Using disabled, enabled and checked in CSS Selectors
  15. XPath Expressions are powerful than all locators including CSS Selectors
  16. CSS Selectors have the highest priority over XPath Expressions

Firebug and Firepath Alternatives


  1. Firebug got deprecated and discontinued by its developers
  2. Alternatives for Firebug and Firepath
  3. Installing Chropath Add-on on Chrome Browser
  4. Using Chropath Add-on in Chrome Browser
  5. Validating XPath Expressions and CSS Selectors using ChroPath Add-on in Chrome Browser
  6. Installing Chropath Add-on on Firefox Browser
  7. Using Chropath Add-on on Firefox Browser
  8. ChroPath in Chrome Browser is the best alternative for Firebug and Firepath
  9. More articles will be added here

Selenium IDE


  1. Installing Selenium IDE in Chrome Browser
  2. Launching Selenium IDE in Chrome Browser
  3. More articles will be added here

Selenium Java Interview Questions


  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 into 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 class 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. More interview questions and answers coming soon.

 

Happy Learning 🙂

Arun Motoori ( www.QAFox.com )

On a mission to contribute to the Software Testing Community in all possible ways.

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