OpenQA.Selenium.FrameSwitchingTest.ShouldBeAbleToSwitchToAnIFrameUsingAPreviouslyLocatedWebElement C# (CSharp) Méthode

ShouldBeAbleToSwitchToAnIFrameUsingAPreviouslyLocatedWebElement() private méthode

        public void ShouldBeAbleToSwitchToAnIFrameUsingAPreviouslyLocatedWebElement()
        {
            driver.Url = iframePage;
            IWebElement frame = driver.FindElement(By.TagName("iframe"));
            driver.SwitchTo().Frame(frame);
            Assert.AreEqual("name", driver.FindElement(By.Name("id-name1")).GetAttribute("value"));
        }
FrameSwitchingTest