public void ClickRadioButtonByName(string radiobuttonname, string radiovalue) { var htmlElement = _webPage.FindElementByName(radiobuttonname); if (htmlElement.GetAttribute("value").Equals(radiovalue)) { if (!htmlElement.Selected) { htmlElement.Click(); } } }