ByIdOrNameToString Method WebDriver
Writes out a description of this By object.

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

public override string ToString()

Return Value

Type: String
Converts the value of this instance to a String
See Also

Reference