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

AssertCannotSelect() private static méthode

private static AssertCannotSelect ( IWebElement element ) : void
element IWebElement
Résultat void
        private static void AssertCannotSelect(IWebElement element)
        {
            try
            {
                element.Click();
                Assert.Fail(string.Format(assertCannotPerformActionFormat_action_element, "select", Describe(element)));
            }
            catch (InvalidElementStateException)
            {
                //Expected
            }
        }