Skip to content

CosmoCode (Formerly TeachMeSelenium)

DevOps tutorials | Test Automation tutorials

CosmoCode (Formerly TeachMeSelenium)

MENUMENU
  • Home
  • Selenium Tutorials
    • 0. Beginners, start here
    • 1. System Setup
      • Installing programming language dependencies
      • Installing Selenium dependencies
    • 2. First selenium script
      • Create a new project and include dependencies
      • Writing and running code
    • 3. Identifying elements in the page
      • Inspect attributes like id, class, name etc of an element
      • Introduction to XPath locators
      • XPath functions
      • CSS Selectors
    • 4. Interacting with the Elements in the page
      • Locating element by using findElement
      • Performing actions like click, type, select etc
      • Getting the list of elements and Child Element
    • 5. Waits
      • Implicit Wait
      • Explicit wait
    • 6. Handling Alert dialog, Popup windows and Frames
      • Handling Alert dialog
      • Handling Popup windows
    • 7. Interacting with the Browser
      • Running test on different browsers
      • Taking the screenshot of the page
      • Executing JavaScript through JavascriptExecutor
    • 8. Advanced User Interactions
      • Introducing Actions and moving the mouse over an element
      • Performing drag and drop operations
      • Automating Keyboard press events
    • 9. Selenium Grid
      • Introduction to Selenium Grid & Setting up hub and nodes
      • RemoteWebDriver and DesiredCapabilities
      • Running tests on SauceLabs' cloud machines
    • 10. Selenium Pro Tips
      • How to connect Selenium to an existing browser that was opened manually?
      • How to disable insecure password warning in Firefox for Selenium?
      • WebDriver Exceptions
      • How to interact with shadow DOM in Selenium?
    • > Click here to watch Video Tutorials
    • > TestNG - a testing framework
      • TestNG | Introduction & Setup
  • JavaScript Tutorials
    • Object-oriented programming in JavaScript
      • Introduction to Object Oriented Programming | JavaScript & Object Oriented Programming | Part 1
      • Setting up environment | JavaScript & Object Oriented Programming | Part 2
      • Object Literals | JavaScript & Object Oriented Programming | Part 3
      • Deep dive into Object Literals | JavaScript & Object Oriented Programming | Part 4
      • Factory Functions | JavaScript & Object Oriented Programming | Part 5
      • Constructor Functions | JavaScript & Object Oriented Programming | Part 6
      • Built-in Constructor Functions in JavaScript | JavaScript & Object Oriented Programming | Part 7
      • How to implement Abstraction in JavaScript | JavaScript & Object Oriented Programming | Part 8
      • Adding, removing and iterating Object Properties | JavaScript & Object Oriented Programming | Part 9
      • Getters and Setters in JavaScript | JavaScript & Object Oriented Programming | Part 10
      • Prototypes in JavaScript | JavaScript & Object Oriented Programming | Part 11
    • Understanding var, let and const in JavaScript
  • More
    • Automation Practice | Beginner
    • Automation Practice | First Selenium Script
    • Automation Practice | Handling Waits
    • Automation Practice | WebTable
  • About Us
MENUMENU
  • Home
  • Selenium Tutorials
    • 0. Beginners, start here
    • 1. System Setup
      • Installing programming language dependencies
      • Installing Selenium dependencies
    • 2. First selenium script
      • Create a new project and include dependencies
      • Writing and running code
    • 3. Identifying elements in the page
      • Inspect attributes like id, class, name etc of an element
      • Introduction to XPath locators
      • XPath functions
      • CSS Selectors
    • 4. Interacting with the Elements in the page
      • Locating element by using findElement
      • Performing actions like click, type, select etc
      • Getting the list of elements and Child Element
    • 5. Waits
      • Implicit Wait
      • Explicit wait
    • 6. Handling Alert dialog, Popup windows and Frames
      • Handling Alert dialog
      • Handling Popup windows
    • 7. Interacting with the Browser
      • Running test on different browsers
      • Taking the screenshot of the page
      • Executing JavaScript through JavascriptExecutor
    • 8. Advanced User Interactions
      • Introducing Actions and moving the mouse over an element
      • Performing drag and drop operations
      • Automating Keyboard press events
    • 9. Selenium Grid
      • Introduction to Selenium Grid & Setting up hub and nodes
      • RemoteWebDriver and DesiredCapabilities
      • Running tests on SauceLabs' cloud machines
    • 10. Selenium Pro Tips
      • How to connect Selenium to an existing browser that was opened manually?
      • How to disable insecure password warning in Firefox for Selenium?
      • WebDriver Exceptions
      • How to interact with shadow DOM in Selenium?
    • > Click here to watch Video Tutorials
    • > TestNG - a testing framework
      • TestNG | Introduction & Setup
  • JavaScript Tutorials
    • Object-oriented programming in JavaScript
      • Introduction to Object Oriented Programming | JavaScript & Object Oriented Programming | Part 1
      • Setting up environment | JavaScript & Object Oriented Programming | Part 2
      • Object Literals | JavaScript & Object Oriented Programming | Part 3
      • Deep dive into Object Literals | JavaScript & Object Oriented Programming | Part 4
      • Factory Functions | JavaScript & Object Oriented Programming | Part 5
      • Constructor Functions | JavaScript & Object Oriented Programming | Part 6
      • Built-in Constructor Functions in JavaScript | JavaScript & Object Oriented Programming | Part 7
      • How to implement Abstraction in JavaScript | JavaScript & Object Oriented Programming | Part 8
      • Adding, removing and iterating Object Properties | JavaScript & Object Oriented Programming | Part 9
      • Getters and Setters in JavaScript | JavaScript & Object Oriented Programming | Part 10
      • Prototypes in JavaScript | JavaScript & Object Oriented Programming | Part 11
    • Understanding var, let and const in JavaScript
  • More
    • Automation Practice | Beginner
    • Automation Practice | First Selenium Script
    • Automation Practice | Handling Waits
    • Automation Practice | WebTable
  • About Us

Ansible

How to dynamically add hosts to group in Ansible

If you work with Ansible, you probably know that we generally provide hosts and groups in a hosts file or inventory. However, at times we might not know all hosts on which we want to run a play. We may decided it at the run time which either comes as an output of another script …

Read moreHow to dynamically add hosts to group in Ansible

© 2023 CosmoCode (Formerly TeachMeSelenium) • Built with GeneratePress
  • Home
  • Selenium Tutorials
    • 0. Beginners, start here
    • 1. System Setup
      • Installing programming language dependencies
      • Installing Selenium dependencies
    • 2. First selenium script
      • Create a new project and include dependencies
      • Writing and running code
    • 3. Identifying elements in the page
      • Inspect attributes like id, class, name etc of an element
      • Introduction to XPath locators
      • XPath functions
      • CSS Selectors
    • 4. Interacting with the Elements in the page
      • Locating element by using findElement
      • Performing actions like click, type, select etc
      • Getting the list of elements and Child Element
    • 5. Waits
      • Implicit Wait
      • Explicit wait
    • 6. Handling Alert dialog, Popup windows and Frames
      • Handling Alert dialog
      • Handling Popup windows
    • 7. Interacting with the Browser
      • Running test on different browsers
      • Taking the screenshot of the page
      • Executing JavaScript through JavascriptExecutor
    • 8. Advanced User Interactions
      • Introducing Actions and moving the mouse over an element
      • Performing drag and drop operations
      • Automating Keyboard press events
    • 9. Selenium Grid
      • Introduction to Selenium Grid & Setting up hub and nodes
      • RemoteWebDriver and DesiredCapabilities
      • Running tests on SauceLabs’ cloud machines
    • 10. Selenium Pro Tips
      • How to connect Selenium to an existing browser that was opened manually?
      • How to disable insecure password warning in Firefox for Selenium?
      • WebDriver Exceptions
      • How to interact with shadow DOM in Selenium?
    • > Click here to watch Video Tutorials
    • > TestNG – a testing framework
      • TestNG | Introduction & Setup
  • JavaScript Tutorials
    • Object-oriented programming in JavaScript
      • Introduction to Object Oriented Programming | JavaScript & Object Oriented Programming | Part 1
      • Setting up environment | JavaScript & Object Oriented Programming | Part 2
      • Object Literals | JavaScript & Object Oriented Programming | Part 3
      • Deep dive into Object Literals | JavaScript & Object Oriented Programming | Part 4
      • Factory Functions | JavaScript & Object Oriented Programming | Part 5
      • Constructor Functions | JavaScript & Object Oriented Programming | Part 6
      • Built-in Constructor Functions in JavaScript | JavaScript & Object Oriented Programming | Part 7
      • How to implement Abstraction in JavaScript | JavaScript & Object Oriented Programming | Part 8
      • Adding, removing and iterating Object Properties | JavaScript & Object Oriented Programming | Part 9
      • Getters and Setters in JavaScript | JavaScript & Object Oriented Programming | Part 10
      • Prototypes in JavaScript | JavaScript & Object Oriented Programming | Part 11
    • Understanding var, let and const in JavaScript
  • More
    • Automation Practice | Beginner
    • Automation Practice | First Selenium Script
    • Automation Practice | Handling Waits
    • Automation Practice | WebTable
  • About Us