public void _01_MoveToChildFrame()
        {
            test = extent
                   .StartTest("MoveToChildFrame", "Verifies the link is displayed")
                   .AssignCategory("Frames");
            test.Log(LogStatus.Info, "Move to appropriate frame and discover link");

            try
            {
                FrameHandler.MoveToChildFrame(_driver, By.Name("menu_page"));
                Assert.True(_driver.FindElement(By.Id("googleLink")).Displayed, "Link was not found in 'menu_page'");
                test.Log(LogStatus.Pass, "The link " + "menu_page" + " is displayed ");
            }
            catch (Exception ex)
            {
                test.Log(LogStatus.Fail, "<pre>" + ex.StackTrace + "</pre>");
                throw;
            }
        }
 public void _06_MoveToSiblingFrame()
 {
     test = extent
            .StartTest("MoveToSiblingFrame", " Moves to frame " + "'main_frame2'")
            .AssignCategory("Frames");
     test.Log(LogStatus.Info, "Final Test in 'FrameHandlerTest' series");
     try
     {
         FrameHandler.MoveToChildFrame(_driver, By.Name("main_frame1"));
         FrameHandler.MoveToSiblingFrame(_driver, By.Name("main_frame2"));
         Assert.True(FrameHandler.GetCurrentFrameName(_driver).Equals("main_frame2"), "Frame name was not 'main_frame2' ");
         test.Log(LogStatus.Pass, "The current frame is " + "'main_frame2'");
     }
     catch (Exception ex)
     {
         test.Log(LogStatus.Fail, "<pre>" + ex.StackTrace + "</pre>");
         throw;
     }
 }
        public void _04_MoveToChildFrameArray()
        {
            test = extent
                   .StartTest("MovedToChildFrameArray", "Moves into " + "'main_frame1'")
                   .AssignCategory("Frames");
            try
            {
                By locatorParentFrame = By.Name("main_page");
                By locatorChildFrame  = By.Name("main_frame1");

                FrameHandler.MoveToChildFrame(_driver, new By[] { locatorParentFrame, locatorChildFrame });
                Assert.True(FrameHandler.GetCurrentFrameName(_driver).Equals("main_frame1"), "Failed to move to 'main_frame1'  ");
                test.Log(LogStatus.Pass, "The current frame is " + "main_frame1");
            }
            catch (Exception ex)
            {
                test.Log(LogStatus.Fail, "<pre>" + ex.StackTrace + "</pre>");
                throw;
            }
        }