Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Webscraping
  • Beautiful Soup
  • Request
  • Scrapy
  • open cv
  • Data analysis
  • Machine learning
  • NLP
  • Deep learning
  • Data Science
  • Interview question
  • ML math
  • ML Projects
  • ML interview
  • DL interview
Open In App
Next Article:
Selenium - Components, Features, Uses and Limitations
Next article icon

Selenium Python Tutorial

Last Updated : 02 Jan, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python , Java , C# , etc, we will be working with Python. Selenium Tutorial covers all topics such as – WebDriver, WebElement, Unit Testing with selenium. This Python Selenium Tutorial covers Selenium from basics to advanced and professional uses. Selenium-Python-Tutorial

Pre-requisite to Learn Selenium Python Tutorial

  • B asic Knowledge of Python: Before diving into Selenium, you should be comfortable with Python basics.
  • Understanding of Web Technologies: Familiarity with HTML, CSS, and JavaScript is crucial because Selenium interacts with webpages by manipulating these elements.
  • Basic Programming Concepts: Concepts like variables, data types, control structures (if-else, loops), functions, and error handling are essential.

Why learn Selenium Python ?

  • Open Source and Portable – Selenium is an open source and portable Web testing Framework.
  • Combination of tool and DSL – Selenium is combination of tools and DSL (Domain Specific Language) in order to carry out various types of tests.
  • Easier to understand and implement – Selenium commands are categorized in terms of different classes which make it easier to understand and implement.
  • Less burden and stress for testers – As mentioned above, the amount of time required to do testing repeated test scenarios on each and every new build is reduced to zero, almost. Hence, the burden of tester gets reduced.
  • Cost reduction for the Business Clients – The Business needs to pay the testers their salary, which is saved using automation testing tool. The automation not only saves time but gets cost benefits too, to the business.

Learning Selenium with Python opens up many possibilities for efficient and effective web application testing, particularly when paired with popular cloud testing platforms like LambdaTest.

LambdaTest is an AI-powered test orchestration and execution platform that lets developers and testers perform Selenium Python testing at scale on a remote test lab of 3000+ real desktop browsers and operating systems. With Selenium Python, you can write robust test scripts to automate the testing of web applications, ensuring their functionality across different browsers and platforms. Developers and testers can even run tests in parallel on multiple combinations, helping them to ship quality builds at light speed.

Selenium Basics
  • Selenium Basics
  • Components of Selenium
  • Applications and Uses
  • Features
  • Limitations

Selenium Python Basics

  • Selenium Python Introduction and Installation
  • Navigating links using get method
  • Interacting with Webpage
  • Locating single elements
  • Locating multiple elements
  • Locator Strategies – Selenium Python
  • Writing Tests using Selenium Python

Locating Strategies

  • Locating Single Elements –
    • find_element_by_id()
    • find_element_by_name()
    • find_element_by_xpath()
    • find_element_by_link_text()
    • find_element_by_partial_link_text()
    • find_element_by_tag_name()
    • find_element_by_class_name()
    • find_element_by_css_selector()
  • Locating Multiple Elements –
    • find_elements_by_name()
    • find_elements_by_xpath()
    • find_elements_by_link_text()
    • find_element_by_partial_link_text()
    • find_elements_by_tag_name()
    • find_elements_by_class_name()
    • find_elements_by_css_selector()

Waits

  • Explicit waits
  • Implicit Waits
Action Chains
  • Action Chains Basics
  • click
  • click_and_hold
  • context_click
  • double_click
  • drag_and_drop
  • key_down
  • key_up
  • move_by_offset
  • move_to_element
  • move_to_element_with_offset
  • release
  • reset_actions
  • send_keys

Advanced in Selenium Python –

  • Handling Exceptions – Selenium Python
  • Special Keys in Selenium Python
  • How to handle alert prompts in Selenium Python ?
  • Adding and Deleting Cookies in Selenium Python
  • How to move back and forward in History using Selenium Python ?
  • Special Keys in Selenium Python
  • Assertion in Selenium WebDriver using TestNg
  • Selenium Python Tricks
  • Page Object Model (POM)

Project Examples

  • Whatsapp using Python!
  • Browser Automation Using Selenium
  • Facebook Login using Python
  • Automating Happy Birthday post on Facebook using Selenium
  • How to access popup login window in selenium using Python
  • SMS Bomber using Selenium

Selenium WebDriver

Selenium Webdriver is the parent of all methods and classes used in Selenium Python. It is the driving force of Selenium that allows us to perform various operations on multiple elements on a webpage. Driver has various methods and attributes one can use to automate testing in Selenium Python. To check how to use webdriver, visit –

WebElement in Selenium Python

. Various methods one can use in selenium Python are –

Method Description
add_cookie Adds a cookie to your current session.
back Goes one step backward in the browser history.
close Closes the current window.
create_web_element Creates a web element with the specified element_id.
delete_all_cookies Delete all cookies in the scope of the session.
delete_cookie Deletes a single cookie with the given name.
execute_async_script Asynchronously Executes JavaScript in the current window/frame.
execute_script Synchronously Executes JavaScript in the current window/frame.
forward Goes one step forward in the browser history.
fullscreen_window Invokes the window manager-specific ‘full screen’ operation
get_cookie Get a single cookie by name. Returns the cookie if found, None if not.
get_cookies Returns a set of dictionaries, corresponding to cookies visible in the current session.
get_log Gets the log for a given log type
get_screenshot_as_base64 Gets the screenshot of the current window as a base64 encoded string which is useful in embedded images in HTML.
get_screenshot_as_file Saves a screenshot of the current window to a PNG image file.
get_screenshot_as_png Gets the screenshot of the current window as a binary data.
get_window_position Gets the x, y position of the current window.
get_window_rect Gets the x, y coordinates of the window as well as height and width of the current window.
get_window_size Gets the width and height of the current window.
implicitly_wait Sets a sticky timeout to implicitly wait for an element to be found,
maximize_window Maximizes the current window that webdriver is using
minimize_window Invokes the window manager-specific ‘minimize’ operation
quit Quits the driver and closes every associated window.
refresh Refreshes the current page.
set_page_load_timeout Set the amount of time to wait for a page load to complete before throwing an error.
set_script_timeout Set the amount of time that the script should wait during an execute_async_script call before throwing an error.
set_window_position Sets the x, y position of the current window. (window.moveTo)
set_window_rect Sets the x, y coordinates of the window as well as height and width of the current window.
current_url Gets the URL of the current page.
current_window_handle Returns the handle of the current window.
page_source Gets the source of the current page.
title Returns the title of the current page.

Selenium WebElement

An element can be a tag, property, or anything, it is an instance of class

selenium.webdriver.remote.webelement.WebElement

. After you find an element on screen using selenium, you might want to click it or find sub-elements, etc. Selenium provides methods around this WebElement of Selenium. To checkout how to use element object in selenium, visit –

. Various methods one can use with an element in Selenium Python are discussed below –

Element Methods Description
is_selected() is_selected method is used to check if element is selected or not. It returns a boolean value True or False.
is_displayed() is_displayed method is used to check if element it visible to user or not. It returns a boolean value True or False.
is_enabled() is_enabled method is used to check if element is enabled or not. It returns a boolean value True or False.
get_property() get_property method is used to get properties of an element, such as getting text_length property of anchor tag.
get_attribute() get_attribute method is used to get attributes of an element, such as getting href attribute of anchor tag.
send_keys() send_keys method is used to send text to any field, such as input field of a form or even to anchor tag paragraph, etc.
click() click method is used to click on any element, such as an anchor tag, a link, etc.
clear() clear method is used to clear text of any field, such as input field of a form or even to anchor tag paragraph, etc.
screenshot() screenshot method is used to save a screenshot of current element to a PNG file.
submit() submit method is used to submit a form after you have sent data to a form.
value_of_css_property() value_of_css_property method is used to get value of a css property for a element.
location location method is used to get location of element in renderable canvas.
screenshot_as_png screenshot_as_png method is used to gets the screenshot of the current element as binary data.
parent parent method is used to get internal reference to the WebDriver instance this element was found from.
size size method is used to get size of current element.
tag_name tag_name method is used to get name of tag you are referring to.
text text method is used to get text of current element.
rect rect method is used to get a dictionary with the size and location of the element.
screenshot_as_base64 screenshot_as_base64 method is used to gets the screenshot of the current element as a base64 encoded string.


Next Article
Selenium - Components, Features, Uses and Limitations
author
abhishek1
Improve
Article Tags :
  • Python
  • Selenium
  • Software Testing
  • Python Selenium-Exercises
  • Python-selenium
  • selenium
  • Spotlight
Practice Tags :
  • python

Similar Reads

  • Selenium Python Tutorial
    Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python , Java , C# , etc, we will be working with Python. Selenium Tutorial cover
    9 min read
  • Selenium Basics

    • Selenium - Components, Features, Uses and Limitations
      Selenium is a powerful open-source framework for automating web browser testing easily. This article covers the basics of Selenium with including its components, features, uses, and limitations while providing a detailed view of it. Selenium is a powerful tool for controlling web browsers through pr
      7 min read

    • Components of Selenium
      Selenium is a powerful tool for controlling web browsers through programs. It is functional for all browsers, works on all major OS, and its scripts are written in various languages i.e., Python, Java, C#, etc. Selenium has four major components Selenium IDE, Selenium RC, Selenium Web driver, and Se
      4 min read

    • Applications and Uses of Selenium WebDriver
      Selenium Webdriver is a powerful tool for controlling web browser through program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc. Selenium Webdriver is a primary automation tool used by developers all around the wo
      3 min read

    • Features of Selenium WebDriver
      Selenium is a powerful tool for controlling web browser through program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C# etc, we will be working with Python. This article revolves around Major Features of Selenium WebDriv
      2 min read

    • Limitations of Selenium Webdriver
      Selenium is a powerful tool for controlling web browser through program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc but it has some disadvantages and limitations such as it doesn't support Windows or Desktop app
      2 min read

    Selenium Python Basics

    • Selenium Python Introduction and Installation
      Selenium's Python Module is built to perform automated testing with Python. Selenium in Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. Through Selenium Python API you can access all functionalities of python selenium webdriver intuitively. Table
      4 min read

    • Navigating links using get method in Selenium - Python
      Selenium's Python module allows you to automate web testing using Python. The Selenium Python bindings provide a straightforward API to write functional and acceptance tests with Selenium WebDriver. Through this API, you can easily access all WebDriver features in a user-friendly way. This article e
      2 min read

    • Interacting with Webpage - Selenium Python
      Selenium’s Python module is designed for automating web testing tasks in Python. It provides a straightforward API through Selenium WebDriver, allowing you to write functional and acceptance tests. To open a webpage, you can use the get() method for navigation. However, the true power of Selenium li
      3 min read

    • Locating single elements in Selenium Python
      Locators Strategies in Selenium Python are methods that are used to locate elements from the page and perform an operation on the same. Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using
      5 min read

    • Locating multiple elements in Selenium Python
      Locators Strategies in Selenium Python are methods that are used to locate single or multiple elements from the page and perform operations on the same. Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/accep
      5 min read

    • Locator Strategies - Selenium Python
      Locators Strategies in Selenium Python are methods that are used to locate elements from the page and perform an operation on the same. Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usin
      2 min read

    • Writing Tests using Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. Through Selenium Python API you can access all functionalities of Selenium WebDriver in an intuitive way. This art
      2 min read

    Locating Strategies Single Elements

    • find_element() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method , you might want to play mor
      3 min read

    • find_element(By.Name) driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      3 min read

    • find_element(By.XPATH) driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using the get method , you might want to play
      3 min read

    • find_element_by_link_text() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      3 min read

    • find_element_by_partial_link_text() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      3 min read

    • find_element_by_tag_name() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      3 min read

    • find_element_by_class_name() driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out – Navigating links using get method , you might want to play mor
      3 min read

    • find_element_by_css_selector() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using the get method, you might want to play m
      3 min read

    Locating Strategies Multiple Elements

    • find_elements_by_name() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      2 min read

    • find_elements_by_xpath() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      2 min read

    • find_elements_by_link_text() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      2 min read

    • find_elements_by_partial_link_text() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      2 min read

    • find_elements_by_tag_name() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using the get method, you might want to play m
      2 min read

    • find_elements_by_class_name() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using the get method, you might want to play m
      2 min read

    • find_elements_by_css_selector() driver method - Selenium Python
      Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more
      2 min read

    Waits

    • Explicit waits in Selenium Python
      Selenium Python is one of the great tools for testing automation. These days most web apps are using AJAX techniques. When the browser loads a page, the elements within that page may load at different time intervals. Table of Content What is Explicit Waits? How to create an Explicit wait in Selenium
      3 min read

    • Implicit Waits in Selenium Python
      Selenium Python is one of the great tools for testing automation. These days most of the web apps are using AJAX techniques. When a page is loaded by the browser, the elements within that page may load at different time intervals. This makes locating elements difficult: if an element is not yet pres
      2 min read

    Action Chains

    • Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hovering over and drag and
      4 min read

    • click method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • click_and_hold - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • context_click - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • double_click method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • drag_and_drop - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • key_down method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • key_up method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • move_by_offset - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • move_to_element method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • move_to_element_with_offset method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • release method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • reset_actions method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    • send_keys method - Action Chains in Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and dro
      2 min read

    Method

    • add_cookie driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • back driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • close driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • create_web_element driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • delete_all_cookies driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • delete_cookie driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • execute_async_script driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • execute_script driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • forward driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • fullscreen_window driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_cookies driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_log driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_screenshot_as_base64 driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_screenshot_as_file driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being
      2 min read

    • get_screenshot_as_png driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_window_position driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_window_rect driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_window_size driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • implicitly_wait driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • maximize_window driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • minimize_window driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • quit driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • refresh driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • set_page_load_timeout driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • set_script_timeout driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • set_window_position driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • set_window_rect driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • current_url driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • current_window_handle driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • page_source driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    • title driver method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just bein
      2 min read

    Element Methods

    • is_displayed() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • is_enabled() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_property() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • get_attribute() element method - Selenium Python
      Selenium is a powerful Python module used for browser automation. It allows you to interact with web pages just like a real user- click buttons, fill forms, and fetch values from elements. The get_attribute() method fetches the value of an element’s HTML attribute. It first tries to get the property
      2 min read

    • send_keys() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python . Just bei
      2 min read

    • click() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python . Just bei
      2 min read

    • clear() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • screenshot() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • submit() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • value_of_css_property() element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • location element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • screenshot_as_png element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • parent element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • size element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • tag_name element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • text element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • rect element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    • screenshot_as_base64 element method - Selenium Python
      Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method – Selenium Python. Just bein
      2 min read

    Project Examples

    • Browser Automation Using Selenium
      Selenium is a powerful tool for controlling a web browser through the program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python. Mastering Selenium will help you automate your day to da
      3 min read

    • Facebook Login using Python
      Python scripting is one of the most intriguing and fascinating things to do meanwhile learning Python. Automation and controlling the browser is one of them. In this particular article, we will see how to log in to the Facebook account using Python and the power of selenium. Selenium automates and c
      4 min read

    • Python | Automating Happy Birthday post on Facebook using Selenium
      As we know Selenium is a tool used for controlling web browsers through a program. It can be used in all browsers, OS, and its program are written in various programming languages i.e Java, Python (all versions). Selenium helps us automate any kind of task that we frequently do on our laptops, PCs r
      3 min read

    • How to access popup login window in selenium using Python
      Many websites use sign-in using social media to make the login process easy for users. In most cases, if the button is clicked then a new popup window is opened where the user has to enter their user credentials. Manually one can switch windows in a browser and enter the required credentials to log
      3 min read

    • Python | SMS Bomber using Selenium
      Here, we are going to learn a simple SMS bomber trick (for fun and educational purpose). Selenium is a free tool for automated testing across different browsers. In this tutorial, we will learn to send automatically number of spam SMS for given number of frequency and interval.Requirement: You need
      2 min read

geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences