C# 클래스 OpenQA.Selenium.Support.Events.EventFiringWebDriver.EventFiringWebElement

EventFiringWebElement allows you to have access to specific items that are found on the page
상속: IWebElement, IWrapsElement
파일 보기 프로젝트 열기: asynchrony/Selenium2 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Method to clear the text out of an Input element

Click ( ) : void

Click this element. If this causes a new page to load, this method will block until the page has loaded. At this point, you should discard all references to this element and any further operations performed on this element will have undefined behaviour unless you know that the element and the page will still be present. If this element is not clickable, then this operation is a no-op since it's pretty common for someone to accidentally miss the target when clicking in Real Life

EventFiringWebElement ( EventFiringWebDriver driver, IWebElement element ) : System

Initializes a new instance of the EventFiringWebElement class.

FindElement ( By by ) : IWebElement

Finds the first element in the page that matches the By object

FindElements ( By by ) : ReadOnlyCollection

Finds the elements on the page by using the By object and returns a ReadOnlyCollection of the Elements on the page

GetAttribute ( string attributeName ) : string

If this current element is a form, or an element within a form, then this will be submitted to the remote server. If this causes the current page to change, then this method will block until the new page is loaded.

GetCssValue ( string propertyName ) : string

Method to return the value of a CSS Property

SendKeys ( string text ) : void

Method for sending native key strokes to the browser

Submit ( ) : void

If this current element is a form, or an element within a form, then this will be submitted to the remote server. If this causes the current page to change, then this method will block until the new page is loaded.

비공개 메소드들

메소드 설명
Select ( ) : void
Toggle ( ) : bool

메소드 상세

Clear() 공개 메소드

Method to clear the text out of an Input element
public Clear ( ) : void
리턴 void

Click() 공개 메소드

Click this element. If this causes a new page to load, this method will block until the page has loaded. At this point, you should discard all references to this element and any further operations performed on this element will have undefined behaviour unless you know that the element and the page will still be present. If this element is not clickable, then this operation is a no-op since it's pretty common for someone to accidentally miss the target when clicking in Real Life
public Click ( ) : void
리턴 void

EventFiringWebElement() 공개 메소드

Initializes a new instance of the EventFiringWebElement class.
public EventFiringWebElement ( EventFiringWebDriver driver, IWebElement element ) : System
driver EventFiringWebDriver The instance hosting this element.
element IWebElement The to wrap for event firing.
리턴 System

FindElement() 공개 메소드

Finds the first element in the page that matches the By object
public FindElement ( By by ) : IWebElement
by By By mechanism to find the element
리턴 IWebElement

FindElements() 공개 메소드

Finds the elements on the page by using the By object and returns a ReadOnlyCollection of the Elements on the page
public FindElements ( By by ) : ReadOnlyCollection
by By By mechanism to find the element
리턴 ReadOnlyCollection

GetAttribute() 공개 메소드

If this current element is a form, or an element within a form, then this will be submitted to the remote server. If this causes the current page to change, then this method will block until the new page is loaded.
public GetAttribute ( string attributeName ) : string
attributeName string Attribute you wish to get details of
리턴 string

GetCssValue() 공개 메소드

Method to return the value of a CSS Property
public GetCssValue ( string propertyName ) : string
propertyName string CSS property key
리턴 string

SendKeys() 공개 메소드

Method for sending native key strokes to the browser
public SendKeys ( string text ) : void
text string String containing what you would like to type onto the screen
리턴 void

Submit() 공개 메소드

If this current element is a form, or an element within a form, then this will be submitted to the remote server. If this causes the current page to change, then this method will block until the new page is loaded.
public Submit ( ) : void
리턴 void