OpenQA.Selenium.SvgDocumentTest.ClickOnSvgElement C# (CSharp) Method

ClickOnSvgElement() private method

private ClickOnSvgElement ( ) : void
return void
        public void ClickOnSvgElement()
        {
            if (TestUtilities.IsOldIE(driver))
            {
                Assert.Ignore("SVG support only exists in IE9+");
            }

            driver.Url = svgTestPage;
            IWebElement rect = driver.FindElement(By.Id("rect"));

            Assert.AreEqual("blue", rect.GetAttribute("fill"));
            rect.Click();
            Assert.AreEqual("green", rect.GetAttribute("fill"));
        }