Python Selenium Tutorials

Selenium Tutorials

In this series of tutorials, we focus on working with Selenium for web automation in Python programming language.

The tutorials cover all the topics from basics to advanced concepts of Selenium with Python.

Get Started

Get started with an introduction to Selenium, and how to work with Selenium in Python, and then we write our first program with Selenium in Python.

Browser window with Selenium

The following tutorials cover scenarios where we interact with the browser window using Selenium.

Basics

The following tutorials cover scenarios where we automate some of the actions that we do on a webpage using Selenium.

Locating elements

In the following tutorials, we will learn how to locate or find an element by id, class name, link text, name, partial link text, tag name, or XPath, in the given document, using find_element() function.

    Locating a single element using find_element()

    find_element() function is used to locate an element (the first web element) in the webpage that matches the given selection criteria.

    Locating multiple elements using find_elements()

    find_elements() function is used to locate all the elements the webpage that match the given selection criteria.

    Locating elements in hierarchy

    The following tutorials help you how to find locate the siblings, parent, or child elements using Selenium

    XPath

    The following tutorials introduce you to XPath, a very important concept in Selenium for locating the web elements, and different scenarios on how to use XPath to find different types of web elements.

      Form elements

      Forms are web elements which are used to take input from the user. The following tutorials cover scenarios of using Selenium to interact with the different types of form elements.

      Form interactions

      Input Text

        Radio Buttons

        Checkboxes

        HTML Elements

        Any WebElement

        Checks

        Attributes

        Actions

        Paragraphs

        Headings

          Divs

          Images

          Action Chains

          We can simulate actions from input devices like keyboard, mouse, pen or touch devices, and wheel for scrolling.

            Click

              Advanced Python Selenium Techniques

                JavaScript

                Problems – Solutions

                Quiz on Selenium

                Q1. What is the method used to interact with web elements in Selenium Python?

                Not answered

                Q2. Which of the following is not a method to wait for a web element to load in Selenium Python?

                Not answered

                Q3. Which of the following is not a commonly used assertion method in Selenium Python?

                Not answered

                Q4. What is the method used to switch to a different frame in Selenium Python?

                Not answered

                Q5. What is the method used to select a value from a drop-down list in Selenium Python?

                Not answered
                Code copied to clipboard successfully 👍