TestAutomationEssentials.Selenium.ElementsContainer.GetFrame C# (CSharp) Méthode

GetFrame() public méthode

Returns the frame that matches the 'by' criteria which is contained inside the current container
If more than 1 frame matches the specified criteria, the first match is returned;
Any of the arguments is null The frame wasn't found after seconds
public GetFrame ( By @by, string description ) : Frame
@by OpenQA.Selenium.By
description string A description representing the frame in the log
Résultat Frame
        public Frame GetFrame(By @by, string description)
        {
            if (by == null)
                throw new ArgumentNullException("by");
            if(description == null)
                throw new ArgumentNullException("description");

            var element = WaitForElement(@by, description);
            return new Frame(element);
        }

Same methods

ElementsContainer::GetFrame ( string frameName, string description ) : Frame