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

ShouldBeAbleToSwitchToAFrameUsingAPreviouslyLocatedWebElement() private méthode

        public void ShouldBeAbleToSwitchToAFrameUsingAPreviouslyLocatedWebElement()
        {
            driver.Url = framesetPage;
            IWebElement frame = driver.FindElement(By.TagName("frame"));
            driver.SwitchTo().Frame(frame);
            Assert.AreEqual("1", driver.FindElement(By.Id("pageNumber")).Text);
        }
FrameSwitchingTest