Ejemplo n.º 1
0
        /// <summary>
        /// Method to give you access to switch frames and windows.
        /// </summary>
        /// <returns>Returns an Object that allows you to Switch Frames and Windows.</returns>
        /// <example>
        /// <code>
        /// IWebDriver driver = new InternetExplorerDriver();
        /// driver.SwitchTo().Frame("FrameName");
        /// </code>
        /// </example>
        public ITargetLocator SwitchTo()
        {
            if (targetLocator == null)
            {
                targetLocator = new InternetExplorerTargetLocator(this);
            }

            return(targetLocator);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Method to give you access to switch frames and windows.
        /// </summary>
        /// <returns>Returns an Object that allows you to Switch Frames and Windows.</returns>
        /// <example>
        /// <code>
        /// IWebDriver driver = new InternetExplorerDriver();
        /// driver.SwitchTo().Frame("FrameName");
        /// </code>
        /// </example>
        public ITargetLocator SwitchTo()
        {
            if (targetLocator == null)
            {
                targetLocator = new InternetExplorerTargetLocator(this);
            }

            return targetLocator;
        }