DefaultSeleniumGetSelectedValues Method WebDriver
Gets all option values (value attributes) for selected options in the specified select or multi-select element.

Namespace: Selenium
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 3.1.0
Syntax

public string[] GetSelectedValues(
	string selectLocator
)

Parameters

selectLocator
Type: SystemString
an element locator identifying a drop-down menu

Return Value

Type: String
an array of all selected option values in the specified select drop-down

Implements

ISeleniumGetSelectedValues(String)
See Also

Reference