C# 클래스 Selenium.WebElements

상속: Selenium.List, ComInterfaces._WebElements
파일 보기 프로젝트 열기: florentbr/SeleniumBasic 1 사용 예제들

공개 메소드들

메소드 설명
Add ( WebElement element ) : void

Adds a web element

Attribute ( string attributeName, bool withAttributeOnly = true ) : Selenium.List

Returns a list with the attribute for each element

ExecuteAsyncScript ( string script, int timeout = -1 ) : Selenium.List

Execute an asynchronous piece of JavaScript against each web element and returns all the results;

ExecuteScript ( string script, bool ignoreNulls = true ) : Selenium.List

Execute a piece of JavaScript against each web element and returns all the results;

First ( ) : WebElement

Returns the first item

Last ( ) : WebElement

Returns the last item

Text ( int offsetStart, int offsetEnd, bool trim = true ) : Selenium.List

Returns a list containing the text for each element

Values ( object defaultValue = null, int offsetStart, int offsetEnd ) : Selenium.List

Returns a list containing the text parsed to a number for each element

this ( int index ) : WebElement

Get the WebElement at the provided index

비공개 메소드들

메소드 설명
Add ( RemoteSession session, Selenium.List rawElements ) : void
ComInterfaces ( ) : IEnumerator
WebElements ( ) : Selenium.Core
WebElements ( Selenium.List webElements ) : Selenium.Core
WebElements ( RemoteSession session, Selenium.List rawElements ) : Selenium.Core
this ( int index ) : WebElementComInterfaces._WebElements.Selenium.Core

Get the WebElement at the provided index

메소드 상세

Add() 공개 메소드

Adds a web element
public Add ( WebElement element ) : void
element WebElement
리턴 void

Attribute() 공개 메소드

Returns a list with the attribute for each element
public Attribute ( string attributeName, bool withAttributeOnly = true ) : Selenium.List
attributeName string Attribute name
withAttributeOnly bool True to skip elements without the attribute
리턴 Selenium.List

ExecuteAsyncScript() 공개 메소드

Execute an asynchronous piece of JavaScript against each web element and returns all the results;
public ExecuteAsyncScript ( string script, int timeout = -1 ) : Selenium.List
script string Javascript script
timeout int
리턴 Selenium.List

ExecuteScript() 공개 메소드

Execute a piece of JavaScript against each web element and returns all the results;
public ExecuteScript ( string script, bool ignoreNulls = true ) : Selenium.List
script string Javascript script
ignoreNulls bool Null elements are skiped
리턴 Selenium.List

First() 공개 메소드

Returns the first item
public First ( ) : WebElement
리턴 WebElement

Last() 공개 메소드

Returns the last item
public Last ( ) : WebElement
리턴 WebElement

Text() 공개 메소드

Returns a list containing the text for each element
public Text ( int offsetStart, int offsetEnd, bool trim = true ) : Selenium.List
offsetStart int
offsetEnd int
trim bool
리턴 Selenium.List

Values() 공개 메소드

Returns a list containing the text parsed to a number for each element
public Values ( object defaultValue = null, int offsetStart, int offsetEnd ) : Selenium.List
defaultValue object Default value in case the text can't be parsed.
offsetStart int
offsetEnd int
리턴 Selenium.List

this() 공개 메소드

Get the WebElement at the provided index
public this ( int index ) : WebElement
index int Base zero index
리턴 WebElement