private Size GetFrameContentSize()
        {
            IWebElement frameScrollRootElement = EyesSeleniumUtils.GetDefaultRootElement(driver_);
            Size        sreSize = EyesRemoteWebElement.GetClientSize(frameScrollRootElement, driver_, logger_);

            return(sreSize);
        }
Esempio n. 2
0
        private IWebElement GetScrollRootElement(IWebDriver driver)
        {
            IWebElement scrollRootElement = ScrollRootElement;

            if (scrollRootElement == null)
            {
                logger_.Verbose("no scroll root element. selecting default.");
                scrollRootElement = EyesSeleniumUtils.GetDefaultRootElement(driver);
            }

            return(scrollRootElement);
        }