C# Класс TestAutomationEssentials.Selenium.ElementsContainer

Acts as a base class for all objects that can contain DOM elements
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ElementAppears ( By by ) : bool
FindElements ( By @by, string description ) : IEnumerable
GetFrame ( By @by, string description ) : Frame

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;

GetFrame ( string frameName, string description ) : Frame

Returns the specified frame which is contained inside the current container

WaitForElement ( By by, string description, int seconds = DefaultWaitTimeout ) : BrowserElement

Защищенные методы

Метод Описание
Activate ( ) : void
ElementsContainer ( string description ) : System

Initializes the instance of ElementsContainer with the specified description

GetSearchContext ( ) : ISearchContext

Описание методов

Activate() защищенный абстрактный Метод

protected abstract Activate ( ) : void
Результат void

ElementAppears() публичный Метод

public ElementAppears ( By by ) : bool
by OpenQA.Selenium.By
Результат bool

ElementsContainer() защищенный Метод

Initializes the instance of ElementsContainer with the specified description
is null
protected ElementsContainer ( string description ) : System
description string A description representing the element in the log
Результат System

FindElements() публичный Метод

public FindElements ( By @by, string description ) : IEnumerable
@by OpenQA.Selenium.By
description string
Результат IEnumerable

GetFrame() публичный Метод

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
Результат Frame

GetFrame() публичный Метод

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
Результат Frame

GetSearchContext() защищенный Метод

protected GetSearchContext ( ) : ISearchContext
Результат ISearchContext

WaitForElement() публичный Метод

public WaitForElement ( By by, string description, int seconds = DefaultWaitTimeout ) : BrowserElement
by OpenQA.Selenium.By
description string
seconds int
Результат BrowserElement