public void DoubleClick() { Service.BrowserActions.Refresh(); RadioButton Element = Service.LocateWebElement.LocateElementByXPath(eElementType.RadioButton, "//*[@id=\"test18\"]/input[2]") as RadioButton; Element.DoubleClick(); object result = Service.BrowserActions.ExecuteScript("document.getElementsByName(\"country\")[1].checked"); RadioButton Element2 = Service.LocateWebElement.LocateElementByXPath(eElementType.RadioButton, "//*[@id=\"test18\"]/input[2]") as RadioButton; Assert.AreEqual("true", Element2.GetAttribute("checked")); }