OpenQA.Selenium.ElementAttributeTest.ShouldReturnValueOfClassAttributeOfAnElementAfterSwitchingIFrame C# (CSharp) Метод

ShouldReturnValueOfClassAttributeOfAnElementAfterSwitchingIFrame() приватный Метод

private ShouldReturnValueOfClassAttributeOfAnElementAfterSwitchingIFrame ( ) : void
Результат void
        public void ShouldReturnValueOfClassAttributeOfAnElementAfterSwitchingIFrame()
        {
            driver.Url = iframePage;
            driver.SwitchTo().Frame("iframe1");

            IWebElement wallace = driver.FindElement(By.XPath("//div[@id='wallace']"));
            String className = wallace.GetAttribute("class");
            Assert.AreEqual("gromit", className);
        }