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

Object oriented programming

Object Literals | JavaScript & Object Oriented Programming | Part 3

In the Previous Tutorial, we setup our development environment with the following setup – Google Chrome & its Developer Tool Visual Studio Code (VS Code) Live Server (VS Code extension) Writing some boilerplate HTML and JavaScript Code Running the app and verifying Hello World In this tutorial we’ll learn the following – What is an …

Read moreObject Literals | JavaScript & Object Oriented Programming | Part 3

Introduction to Object Oriented Programming | JavaScript & Object Oriented Programming | Part 1

Yes, you can structure your JavaScript code as per Object Oriented Programming (OOPs) principles.

© 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