/// <summary> /// Clear all selected entries from a list box. Supported onlywhen the select element supports multiple selection. /// </summary> /// <param name="selectLocator">The select locator.</param> /// <param name="type">Type of locator.</param> public void DeselectAll(string controlId, bool useSitemapId = true, FindType sourceType = FindType.ById) { string locator = useSitemapId == true?_siteMapData.GetLocator(controlId, out sourceType) : controlId; _client.DeselectAll(locator, sourceType); }