/// <summary> /// Checks the check box. /// </summary> public void Check2() { WaitForControlReadyIfNecessary(); string sOnClick = (string)SourceControl.GetProperty("onclick"); string sId = SourceControl.Id; if (sId == null || sId == "") { throw new GenericException("Check2(): No ID found for the checkbox!"); } RunScript("document.getElementById('" + sId + "').checked=true;" + sOnClick); }
public void Select2() { SourceControl.WaitForControlReady(); string sOnClick = (string)SourceControl.GetProperty("onclick"); string sId = SourceControl.Id; if (sId == null || sId == "") { throw new GenericException("Select2(): No ID found for the RadioButton!"); } RunScript("document.getElementById('" + sId + "').checked=true;" + sOnClick); }