Selenium Knowledgebase

Title Language Preview Date Posted
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

Using Selenium Web Driver to retrieve value of a HTML input (C#) C#

To get the text entered into an input element, use element.getAttribute("value") where element is

How to perform mouseover function in Selenium WebDriver? (C#) C#

To mouse over elements, you need to use the Actions class to build and perform the MoveToElement

Clear text from textarea with selenium (C#) C#

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? (C#) C#

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

Is there a way to get element by XPath using C# in Selenium WebDriver? C#

WebElements can be located with selenium webdriver using XPaths.

Wait for page load in Selenium (C#) C#

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

How do I find an element that contains specific text in Selenium Webdriver (C#)? C#

To locate an element, you need to find the element based on its XPath as you can specify the text