/// <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); }
/// <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; }