Selenium Tutorials
In this we list out the Selenium Tutorial using Python, from setup and basics, to advanced learning.
Setup
- Setup Selenium for PythonSelenium Tutorial to setup Selenium with Python, download browser drivers, etc.
Basics
- Get Title of Current Web PagePython Tutorial to get the title of the current web page using Selenium.
- Get URL of the Current Web PagePython Tutorial to get the URL (link) of the current web page using Selenium.
- Open URLPython Tutorial to open a specific URL in the browser using Selenium.
Navigation
- Press browser’s back buttonPython Tutorial to programmatically press browser’s back button using Selenium.
- Press browser’s refresh buttonPython Tutorial to programmatically press browser’s refresh button using Selenium.
- Press browser’s forward buttonPython Tutorial to programmatically press browser’s forward button using Selenium.
Selecting Single 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.
- Find Element by Id
- Find Element by Class Name
- Find Element by CSS Selector
- Find Element by Link Text
- Find Element by Name
- Find Element by Partial Link Text
- Find Element by Tag Name
- Find Element by XPath
Selecting Multiple Elements
In the following tutorials, we will learn how to locate or find all the elements by class name, link text, name, partial link text, tag name, or XPath, in the given document, using find_elements()
function.
- Find Elements by Name
- Find Elements by Class Name
- Find Elements by CSS Selector
- Find Elements by Link Text
- Find Elements by Partial Link Text
- Find Elements by Tag Name
- Find Elements by XPath
Element Actions
- Click on a link
- Click on a div element
- Clear text in a text input field
- Enter text in a text input field
- Hover on a div element
- Submit Form
Action Chains
We can simulate actions from input devices like keyboard, mouse, pen or touch devices, and wheel for scrolling.
- What is Action Chain in Selenium?
- Selenium – Click Action
- Selenium – Click and Hold Action
- Selenium – Context Click Action
- Selenium – Double Click Action
- Selenium – Drag and Drop Action
- Selenium – Key down Action
- Selenium – Key up Action
- Selenium – Move by offset Action
- Selenium – Move to Element Action
- Selenium – Move to Element with Offset Action
- Selenium – Release Action
- Selenium – Reset Action
- Selenium – Send key Action