C# Class OpenQA.Selenium.IE.InternetExplorerWebElement

InternetExplorerWebElement allows you to have access to specific items that are found on the page.
Inheritance: RemoteWebElement
Afficher le fichier Open project: epall/selenium Class Usage Examples

Private Properties

Свойство Type Description
AddToScriptArgs WebDriverResult
InternetExplorerWebElement System

Méthodes publiques

Méthode Description
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.

Dispose ( ) : void

Dispose the Element.

DragAndDropBy ( int moveRightBy, int moveDownBy ) : void

Move to an element, MouseDown on the element and move it by passing in the how many pixels horizontally and vertically you wish to move it.

DragAndDropOn ( IRenderedWebElement element ) : void

Drag and Drop an element to another element.

Equals ( object obj ) : bool

Compares if two elements are equal.

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.

GetHashCode ( ) : int

Method to get the hash code of the element.

GetValueOfCssProperty ( string propertyName ) : string

Method to return the value of a CSS Property

Hover ( ) : void

Moves the mouse over the element to do a hover.

Select ( ) : void

Method to select or unselect element. This operation only applies to input elements such as checkboxes, options in a select and radio buttons.

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.

Toggle ( ) : bool

If the element is a checkbox this will toggle the elements state from selected to not selected, or from not selected to selected.

Private Methods

Méthode Description
AddToScriptArgs ( SafeScriptArgsHandle scriptArgs ) : WebDriverResult

Add to the script args.

InternetExplorerWebElement ( InternetExplorerDriver driver, SafeInternetExplorerWebElementHandle wrapper ) : System

Initializes a new instance of the InternetExplorerWebElement class.

Method Details

Clear() public méthode

Method to clear the text out of an Input element.
public Clear ( ) : void
Résultat void

Click() public méthode

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
Résultat void

Dispose() public méthode

Dispose the Element.
public Dispose ( ) : void
Résultat void

DragAndDropBy() public méthode

Move to an element, MouseDown on the element and move it by passing in the how many pixels horizontally and vertically you wish to move it.
public DragAndDropBy ( int moveRightBy, int moveDownBy ) : void
moveRightBy int Integer to move it left or right.
moveDownBy int Integer to move it up or down.
Résultat void

DragAndDropOn() public méthode

Drag and Drop an element to another element.
public DragAndDropOn ( IRenderedWebElement element ) : void
element IRenderedWebElement Element you wish to drop on.
Résultat void

Equals() public méthode

Compares if two elements are equal.
public Equals ( object obj ) : bool
obj object Object to compare against.
Résultat bool

FindElement() public méthode

Finds the first element in the page that matches the By object.
public FindElement ( By by ) : IWebElement
by By By mechanism.
Résultat IWebElement

FindElements() public méthode

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 for finding the object.
Résultat ReadOnlyCollection

GetAttribute() public méthode

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.
Résultat string

GetHashCode() public méthode

Method to get the hash code of the element.
public GetHashCode ( ) : int
Résultat int

GetValueOfCssProperty() public méthode

Method to return the value of a CSS Property
public GetValueOfCssProperty ( string propertyName ) : string
propertyName string CSS property key
Résultat string

Hover() public méthode

Moves the mouse over the element to do a hover.
public Hover ( ) : void
Résultat void

Select() public méthode

Method to select or unselect element. This operation only applies to input elements such as checkboxes, options in a select and radio buttons.
public Select ( ) : void
Résultat void

SendKeys() public méthode

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.
Résultat void

Submit() public méthode

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
Résultat void

Toggle() public méthode

If the element is a checkbox this will toggle the elements state from selected to not selected, or from not selected to selected.
public Toggle ( ) : bool
Résultat bool