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

ShouldAllowAUserToSwitchFromAnIframeBackToTheMainContentOfThePage() private méthode

        public void ShouldAllowAUserToSwitchFromAnIframeBackToTheMainContentOfThePage()
        {
            driver.Url = iframePage;
            driver.SwitchTo().Frame(0);

            driver.SwitchTo().DefaultContent();
            driver.FindElement(By.Id("iframe_page_heading"));
        }
FrameSwitchingTest