SelectElement DeselectByText Method WebDriver
Deselect the option by the text displayed.

Namespace: OpenQA.Selenium.Support.UI
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public void DeselectByText(
	string text
)

Parameters

text
Type: OnlineSystem String
The text of the option to be deselected.
Remarks

When given "Bar" this method would deselect an option like:

<option value="foo">Bar</option>

See Also