TestAutomationEssentials.Selenium.ElementsContainer.GetFrame C# (CSharp) Method

GetFrame() public method

Returns the specified frame which is contained inside the current container
Any of the arguments is null The frame wasn't found after seconds
public GetFrame ( string frameName, string description ) : Frame
frameName string The name of the frame
description string A description representing the frame in the log
return Frame
        public Frame GetFrame(string frameName, string description)
        {
            if (frameName == null)
                throw new ArgumentNullException("frameName");
            if (description == null)
                throw new ArgumentNullException("description");

            var locator = By.XPath(string.Format(".//iframe[@name='{0}' or @id='{0}']", frameName));
            return GetFrame(locator, description);
        }

Same methods

ElementsContainer::GetFrame ( By @by, string description ) : Frame