Selenium Knowledgebase

Title Language Preview Date Posted
Clear text from textarea with selenium (Python) Python

As shown clearly in the script for this example, to clear what is written in a text area using th

Test if element is present using Selenium WebDriver? (Python) Python

The easiest way to check if an element is present on a web page is to find all the elements match

Selenium Webdriver: Wait Until Element is Present (Python) Python

To wait for an element to be visible in Python use WebDriverWait and an expected condition as sho

Is there a way to get element by XPath in Selenium WebDriver? (Python) Python

WebElements can be located with selenium WebDriver using XPaths.

Wait for page load in Selenium (Python) Python

To wait until the page is loaded, the easiest way is to use a WebDriverWait to force the driver t

WebDriver - wait for element using C# C#

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

How to switch to the new browser window, which opens after click on the button? (C#) C#

In order to change to a newly opened tab, use window handles as shown in the following script.

C# Selenium accessing HTML source C#

In order to interact with the entire page source in C#, you need to use the PageSource property o

Selenium accessing HTML source (Java) Java

In order to interact with the entire page source in Java, you need to use the WebDriver method ge

How can I ask the Selenium-WebDriver to wait for few seconds in C#? C#

There are three ways of waiting for elements: explicit wait, implicit wait and fluent wait.

Getting the return value of Javascript code in Selenium (C#) C#

In order to return values from Javascript code, you need to execute your chosen Javascript code u

How to open a new tab using Selenium WebDriver? (C#) C#

The following code shows how to open a link in a new tab using element.SendKeys(...) in the first