Selenium Python Bindings— Automated Web Testing on Brave with Python

Overview

  • What are Selenium Python bindings?
  • How do you automate Brave using Selenium Python bindings?
  • What is DOM navigation?
  • How do you switch through windows and frames when automating Brave with Selenium?
  • What are explicit and implicit waits?
  • Learn about Selenium Python bindings.
  • Understand the process of automating a Brave 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 Brave.
  • Understand the differences between explicit and implicit waits.

Selenium Framework

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?

Earn gift cards & Bitcoin passively
https://www.google.com/search?q=Passivebot.com&source=hp&ei=YbV9YJXVI8iIwbkPp7y5mAc&iflsig=AINFCbYAAAAAYH3DcekE4ULNjcJ-gXfLmzX_uTVLCSwr&oq=Passivebot.com&gs_lcp=Cgdnd3Mtd2l6EANQqwlY-glgvgpoAHAAeACAAQCIAQCSAQCYAQCgAQGqAQdnd3Mtd2l6&sclient=gws-wiz&ved=0ahUKEwjViaHH4orwAhVIRDABHSdeDnMQ4dUDCAk&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