IElementWeb
IElementWeb
is a representation of the browsers HTML element.
Usage
Properties
Text
Description: The inner text of the current element
Type: string
IsDisplayed
Description: Whether the current element is displayed on the page
Type: bool
ClassName
Description: The elements class name
Type: string
Id
Description: The elements id
Type: string
Tag
Description: The elements tag name
Type: string
Methods
Type
Description: Type the provided text into the current element
Arguments: string
Returns: Task
PressKeys
Description: Mimic a user “press” of the provided keys.
Arguments: Keys
Returns: Task
Click
Description: Invoke a click event
Returns: Task
RightClick
Description: Invoke a right-click event
Returns: Task
DoubleClick
Description: Invoke a double-click event
Returns: Task
ClickAndHold
Description: Click and hold the current element
Arguments: TimeSpan
Returns: Task
GetAttributeValue
Description: Get the value of a HTML attribute from its specified name
Arguments: TimeSpan
Returns: Task<string>
ScrollTo
Description: Scroll to and get the specified element
Arguments: string
Returns: Task<IElementWeb>