OpenQA.Selenium.VisibilityTest.ShouldAllowTheUserToTellIfAnElementIsDisplayedOrNot C# (CSharp) Method

ShouldAllowTheUserToTellIfAnElementIsDisplayedOrNot() private method

        public void ShouldAllowTheUserToTellIfAnElementIsDisplayedOrNot()
        {
            driver.Url = javascriptPage;

            Assert.IsTrue(driver.FindElement(By.Id("displayed")).Displayed);
            Assert.IsFalse(driver.FindElement(By.Id("none")).Displayed);
            Assert.IsFalse(driver.FindElement(By.Id("suppressedParagraph")).Displayed);
            Assert.IsFalse(driver.FindElement(By.Id("hidden")).Displayed);
        }