public string GetDropDownListSelection(string elementId) { IWebElement dropDownListElement = Value.FindElement(By.Id(elementId)); return dropDownListElement.FindElement(By.XPath(".//option[@selected=\"selected\"]")).Text; }