WebElement Methods |
The WebElement type exposes the following members.
Name | Description | |
---|---|---|
AsSelect |
Cast the WebElement to a Select element
| |
AsTable |
Cast the WebElement to a Select element
| |
Attribute |
Gets the attribute value.
| |
Clear |
Clears the text if it’s a text entry element.
| |
Click |
Clicks the element.
| |
ClickAndHold |
Clicks the element and hold.
| |
ClickByOffset |
Clicks at the element offset.
| |
ClickContext |
Rigth clicks the element
| |
ClickDouble |
Double clicks the element.
| |
CssValue |
Returns the value of a CSS property
| |
DragAndDropToOffset |
Drag and drop the element to an offset
| |
DragAndDropToWebElement |
Drag and drop the element to another element
| |
Equals(Object) |
Determines whether the specified instances are considered equal.
(Overrides ObjectEquals(Object).) | |
Equals(WebElement) |
Compares if two web elements are equal
| |
ExecuteAsyncScript |
Execute an asynchronous piece of JavaScript in the context of the current element
| |
ExecuteScript |
Executes a piece of JavaScript in the context of the current element.
| |
FindElement |
Find the first WebElement using the given method.
(Inherited from SearchContext.) | |
FindElementBy |
Finds the first child element matching the given mechanism and value.
(Inherited from SearchContext.) | |
FindElementByClass |
Finds the first element matching the specified CSS class.
(Inherited from SearchContext.) | |
FindElementByCss |
Finds the first element matching the specified CSS selector.
(Inherited from SearchContext.) | |
FindElementById |
Finds the first element matching the specified id.
(Inherited from SearchContext.) | |
FindElementByLinkText |
Finds the first element matching the specified link text.
(Inherited from SearchContext.) | |
FindElementByName |
Finds the first element matching the specified name.
(Inherited from SearchContext.) | |
FindElementByPartialLinkText |
Finds the first of elements that match the part of the link text supplied
(Inherited from SearchContext.) | |
FindElementByTag |
Finds the first element matching the specified tag name.
(Inherited from SearchContext.) | |
FindElementByXPath |
Finds the first element matching the specified XPath query.
(Inherited from SearchContext.) | |
FindElements |
Find all elements within the current context using the given mechanism.
(Inherited from SearchContext.) | |
FindElementsBy |
Finds all child elements matching the given mechanism and value.
(Inherited from SearchContext.) | |
FindElementsByClass |
Finds elements matching the specified CSS class.
(Inherited from SearchContext.) | |
FindElementsByCss |
Finds elements matching the specified CSS selector.
(Inherited from SearchContext.) | |
FindElementsById |
Finds elements matching the specified id.
(Inherited from SearchContext.) | |
FindElementsByLinkText |
Finds elements matching the specified link text.
(Inherited from SearchContext.) | |
FindElementsByName |
Finds elements matching the specified name.
(Inherited from SearchContext.) | |
FindElementsByPartialLinkText |
Finds the first of elements that match the part of the link text supplied
(Inherited from SearchContext.) | |
FindElementsByTag |
Finds elements matching the specified tag name.
(Inherited from SearchContext.) | |
FindElementsByXPath |
Finds elements matching the specified XPath query.
(Inherited from SearchContext.) | |
GetHashCode |
Returns the hash code for this element
(Overrides ObjectGetHashCode.) | |
HoldKeys |
Press a key and hold
| |
IsElementPresent |
"Verifies that the specified element is somewhere on the page."
(Inherited from SearchContext.) | |
Location |
Returns the location of the element in the renderable canvas
| |
LocationInView |
Gets the location of an element relative to the origin of the view port.
| |
ReleaseKeys |
Release a key
| |
ReleaseMouse |
Release a click
| |
ScrollIntoView |
Scrolls the current element into the visible area of the browser window.
| |
SendKeys |
Simulates typing into the element.
| |
SerializeJson | ||
Size |
Returns the size of the element
| |
Submit |
Submits a form.
| |
TakeScreenshot |
Gets the screenshot of the current element
| |
Text |
Gets the text of the element.
| |
TextAsNumber |
Return a number parsed from the text
| |
TextMatch |
Searches the specified input string for an occurrence of the regular expression supplied in the pattern parameter.
| |
TextMatches |
Returns all the occurences matching the regular expression.
| |
UntilT |
Waits for the delegate function to return not null or true
| |
Value |
Returns the value attribute
| |
WaitAttribute |
Waits for an attribute
| |
WaitCssValue |
Waits for a CSS property
| |
WaitDisplayed |
Waits for the element to be displayed.
| |
WaitEnabled |
Waits for the element to be enabled.
| |
WaitForScript |
Waits for a script to return true or not null.
| |
WaitNotAttribute |
Waits for a different attribute
| |
WaitNotCssValue |
Waits for a different CSS property
| |
WaitNotElement |
Waits for an element to be missing.
(Inherited from SearchContext.) | |
WaitNotText |
Waits for a different text
| |
WaitRemoval |
Wait for the web element to be removed from the DOM.
| |
WaitSelection |
Waits for the element to be selected or not.
| |
WaitText |
Waits for text
|