Selenium Python Bindings — Automated Web Testing on Google Chrome with Python

Overview

  • What are Selenium Python bindings?
  • How do you automate Google Chrome using Selenium Python bindings?
  • What is DOM navigation?
  • How do you switch through windows and frames when automating Google Chrome with Selenium?
  • What are explicit and implicit waits?
  • Learn about Selenium Python bindings.
  • Understand the process of automating a Google Chrome instance with Selenium Python bindings.
  • Learn how to traverse web pages using DOM navigation.
  • Learn how to switch through windows and frames when using Selenium with Google Chrome.
  • Understand the differences between explicit and implicit waits.
How to run Selenium tests on Chrome using ChromeDriver
How to run Selenium tests on Chrome using ChromeDriver

Selenium Framework

Current logo: Selenium

Pre-requisites for running Selenium tests with Python

pip install selenium
pip install webdriver-manager

How to run your first test using Selenium and Python?

Original logo: Google
Earn gift cards & Bitcoin passively
https://www.google.com/search?q=Earn+Bitcoin+with+Web+Automation+Passivebot&source=hp&ei=1gOHYM3hN-OD_Qby5YrgCw&iflsig=AINFCbYAAAAAYIcR5qNok_Gq1tYUqD9ZPEqIlJlOv5PI&oq=Earn+Bitcoin+with+Web+Automation+Passivebot&gs_lcp=Cgdnd3Mtd2l6EANQ9wdYjgtg9gtoAHAAeACAAQCIAQCSAQCYAQCgAQGqAQdnd3Mtd2l6&sclient=gws-wiz&ved=0ahUKEwjNpNjSwpzwAhXjQd8KHfKyArwQ4dUDCAs&uact=5

Navigating through HTML DOM Elements

  • CSS ID: .find_element_by_id(“id-search-field”)
  • DOM Path: .find_element_by_xpath(“//input[@id=’id-search-field’]”)
  • CSS class: .find_element_by_class_name(“search-field”)

Navigating through Windows and Frames

Idle Time During Automation

Final Thoughts

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store