OpenQA.Selenium.RenderedWebElementTest.ShouldCorrectlyIdentifyThatAnElementHasWidth C# (CSharp) Method

ShouldCorrectlyIdentifyThatAnElementHasWidth() private method

private ShouldCorrectlyIdentifyThatAnElementHasWidth ( ) : void
return void
        public void ShouldCorrectlyIdentifyThatAnElementHasWidth()
        {
            driver.Url = xhtmlTestPage;

            IWebElement shrinko = driver.FindElement(By.Id("linkId"));
            Size size = shrinko.Size;
            Assert.IsTrue(size.Width > 0, "Width expected to be greater than 0");
            Assert.IsTrue(size.Height > 0, "Height expected to be greater than 0");
        }