internal void SanitizeSettings(Logger logger, IWebDriver driver, bool isFully)
 {
     if (frameChain_.Count > 0 && targetElement_ == null && targetSelector_ == null && !isFully /* &&
                                                                                                 * ((Applitools.Fluent.ICheckSettingsInternal)this).GetTargetRegion() == null*/)
     {
         FrameLocator lastFrame = frameChain_[frameChain_.Count - 1];
         frameChain_.RemoveAt(frameChain_.Count - 1);
         targetElement_ = EyesSeleniumUtils.FindFrameByFrameCheckTarget(lastFrame, driver);
         logger.Log("Using Target.Frame() for the purpose of Target.Region()");
     }
 }
        internal void SanitizeSettings(Logger logger, IWebDriver driver, CheckState state)
        {
            bool isFully = state.StitchContent;

            if (frameChain_.Count > 0 && targetElement_ == null && targetSelector_ == null && !isFully /* &&
                                                                                                        * ((Applitools.Fluent.ICheckSettingsInternal)this).GetTargetRegion() == null*/)
            {
                FrameLocator lastFrame = frameChain_[frameChain_.Count - 1];
                frameChain_.RemoveAt(frameChain_.Count - 1);
                targetElement_        = EyesSeleniumUtils.FindFrameByFrameCheckTarget(lastFrame, driver);
                state.FrameToSwitchTo = targetElement_;
                logger.Log(TraceLevel.Notice, Stage.Check,
                           new { message = "Using Target.Frame() for the purpose of Target.Region()" });
            }
        }