OpenQA.Selenium.ElementAttributeTest.ShouldTreatReadonlyAsAValue C# (CSharp) Méthode

ShouldTreatReadonlyAsAValue() private méthode

private ShouldTreatReadonlyAsAValue ( ) : void
Résultat void
        public void ShouldTreatReadonlyAsAValue()
        {
            driver.Url = formsPage;

            IWebElement element = driver.FindElement(By.Name("readonly"));
            string readOnlyAttribute = element.GetAttribute("readonly");

            IWebElement textInput = driver.FindElement(By.Name("x"));
            string notReadOnly = textInput.GetAttribute("readonly");

            Assert.AreNotEqual(readOnlyAttribute, notReadOnly);
        }