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

13/05/2021
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

11/05/2021
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

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

WebElements can be located with selenium WebDriver using XPaths.

11/05/2021
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

06/05/2021
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

06/05/2021
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.

06/05/2021
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

06/05/2021
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

06/05/2021
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.

06/05/2021
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

06/05/2021
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

06/05/2021

Pages