OpenQA.Selenium.ElementSelectingTest.ShouldBeAbleToSelectSelectableRadioButtonByClickingOnIt C# (CSharp) Méthode

ShouldBeAbleToSelectSelectableRadioButtonByClickingOnIt() private méthode

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

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

            radioButton.Click();
            AssertSelected(radioButton);

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