Selenium Knowledgebase

Title Language Preview Date Posted
Get Current URL using Selenium WebDriver (Java) Java

To get the current page's URL, use the WebDriver method getCurrentUrl() like so:

04/04/2022
Get Current URL using Selenium WebDriver (Python) Python

To get the current page's URL, use the WebDriver attribute current_url like so:

04/04/2022
Getting XPath of Disappearing Element (chrome) General

On some pages it is necessary to locate an element that disappears soon after it is rendered.

28/03/2022
Get Element Revealed By Hovering (Python) Python

To get an element that is only revealed by hovering on a different element, use the method

07/03/2022
Get Element Revealed By Hovering (Java) Java

To get an element that is only revealed by hovering on a different element, use the method

02/03/2022
Getting Passed Privacy Notices and Cookie Policies (Python)

Sometime your tests will be interrupted by a dialog appearing on the page (usually a privacy poli

22/02/2022
Getting Passed Privacy Notices and Cookie Policies (Java) Java

Sometime your tests will be interrupted by a dialog appearing on the page (usually a privacy poli

22/02/2022
Locating Identical Elements (Python) Python

To differentiate between elements with the same attributes and tag name, you can specify which nu

21/02/2022
Locating Identical Elements (Java) Java

To differentiate between elements with the same attributes and tag name, you can specify which nu

21/02/2022
How to get Text from a WebElement in Selenium (Python) Python

To get the text stored inside a text element (e.g.

21/02/2022
How to Get Text from a WebElement in Selenium (Java) Java

In web testing, it's often necessary to extract the text from a specific WebElement on a web page

21/02/2022
WebDriver - wait for element using Python Python

In order to explicitly wait until an element is visible or clickable, the most direct and simple

18/02/2022

Pages