Exemple #1
0
        /// <summary>
        /// Scrolls the area in the specified direction until the locator finds a child
        /// widget. The locator will be executed in the scroll area's context, so
        /// a relative locator should be used, e.g. <code>By.Qxh("*\/[@label=Foo]")</code>
        /// </summary>
        /// <param name="direction"> "x" or "y" for horizontal/vertical scrolling </param>
        /// <param name="locator"> Child widget locator </param>
        /// <returns>The matching child widget.</returns>
        public IWidget ScrollToChild(string direction, OpenQA.Selenium.By locator)
        {
            ScrollPane scrollPane = ScrollPane;

            return(scrollPane.ScrollToChild(direction, locator));
        }