OpenQA.Selenium.FrameSwitchingTest.ShouldBeAbleToSwitchToAFrameUsingAPreviouslyLocatedWebElement C# (CSharp) Method

ShouldBeAbleToSwitchToAFrameUsingAPreviouslyLocatedWebElement() private method

        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