RemoteWebElementText Property WebDriver
Gets the innerText of this element, without any leading or trailing whitespace, and with other whitespace collapsed.

Namespace: OpenQA.Selenium.Remote
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public string Text { get; }

Property Value

Type: String

Implements

IWebElementText
Exceptions

ExceptionCondition
StaleElementReferenceExceptionThrown when the target element is no longer valid in the document DOM.
See Also

Reference