Selenium Knowledgebase

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

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

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

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

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

WebElements can be located with selenium webdriver using XPaths.

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

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

04/05/2021
Get HTML Source of WebElement in Selenium WebDriver using C# C#

To return the inner HTML source you need to use the element.GetAttribute("innerHTML") code as sho

04/05/2021

Pages