An NDoc Documented Class Library

DefaultSelenium.Select Method 

Select an option from a drop-down using an option locator.

Option locators provide different ways of specifying options of an HTML Select element (e.g. for selecting a specific option, or for asserting that the selected option satisfies a specification). There are several forms of Select Option Locator.

If no option locator prefix is provided, the default behaviour is to match on label.

public void Select(
   string selectLocator,
   string optionLocator
);

Parameters

selectLocator
an element locator identifying a drop-down menu
optionLocator
an option locator (a label by default)

Implements

ISelenium.Select

See Also

DefaultSelenium Class | Selenium Namespace