Clear-ElementText

Clears the text of an element

Powershell

Clears the text of an element

Syntax

Clear-ElementText [[-sessionId] ] [-elementId] []

Parameters

name description
sessionId (Optional) The identifier of the session to route the command to.
elementId The ID of the element to clear

Examples

Clear-ElementText -elementId $elementId

C#

Declaration

void OpenQA.Selenium.IWebElement.Clear()

Examples

element.Clear();