OpenQA.Selenium.ElementSelectingTest.ShouldBeAbleToSelectSelectableRadioButtonByClickingOnIt C# (CSharp) Method

ShouldBeAbleToSelectSelectableRadioButtonByClickingOnIt() private method

        public void ShouldBeAbleToSelectSelectableRadioButtonByClickingOnIt()
        {
            driver.Url = formsPage;

            IWebElement radioButton = this.EnabledUnselectedRadioButton;
            AssertNotSelected(radioButton);

            radioButton.Click();
            AssertSelected(radioButton);

            radioButton.Click();
            AssertSelected(radioButton);
        }