C# 클래스 TestAutomationEssentials.Selenium.ElementsContainer

Acts as a base class for all objects that can contain DOM elements
파일 보기 프로젝트 열기: arnonax/TestEssentials 1 사용 예제들

공개 메소드들

메소드 설명
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