Selenium Knowledgebase

Title Language Preview Date Posted
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
Execute JavaScript using Selenium WebDriver (Java) Java

The following script shows how to use Java's JavascriptExecutor class, to execut

04/05/2021
How to select a drop-down menu value with Selenium using Java? Java

04/05/2021
Is there a way to get element by XPath in Selenium WebDriver (java)? Java

WebElements can be located with selenium webdriver using XPaths.

04/05/2021
How do I find an element that contains specific text in Selenium Webdriver (Java)? Java

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

04/05/2021

Pages