Esempio n. 1
0
        /// <summary>
        /// Zooms in or out by turning the mouse wheel by the specified (positive
        /// or negative) delta.
        /// </summary>
        /// <param name="delta"></param>
        /// <returns></returns>
        public virtual ModelPage ZoomByMouseWheel(int delta)
        {
            ArgumentGuard.NotEquals(delta, 0, nameof(delta));

            SeleniumUtils.ScrollElement(
                Driver, workingAreaWebElement_, delta * MousewheelScrollFactor_);
            WaitForZoomTransitionToEnd_();
            return(this);
        }