/// <summary> /// Verifies the checked radio button option. /// </summary> /// <param name="optionId">The option id.</param> public void VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds optionId) { HtmlFindExpression expression = new HtmlFindExpression("tagname=input", "id=" + optionId); ActiveBrowser.WaitForElement(expression, 60000, false); HtmlInputRadioButton radioButton = ActiveBrowser.Find.ByExpression <HtmlInputRadioButton>("tagname=input", "id=" + optionId) .AssertIsPresent("radio button"); Assert.IsTrue(radioButton.Checked); }
/// <summary> /// Verifies the checked radio button option. /// </summary> /// <param name="optionId">The option id.</param> public void VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds optionId) { HtmlFindExpression expression = new HtmlFindExpression("tagname=input", "id=" + optionId); ActiveBrowser.WaitForElement(expression, 60000, false); HtmlInputRadioButton radioButton = ActiveBrowser.Find.ByExpression<HtmlInputRadioButton>("tagname=input", "id=" + optionId) .AssertIsPresent("radio button"); Assert.IsTrue(radioButton.Checked); }