Models HTML input element of any type and exposes it's attributes as properties More...
Inherits HtmlElements.Elements.HtmlControl.
Inherited by HtmlElements.Elements.HtmlCheckBox.
Public Member Functions | |
HtmlInput (IWebElement webElement) | |
Initializes new instance of HTML element by calling base class constructor More... | |
![]() | |
HtmlElement (IWebElement webElement) | |
void | Clear () |
Clears the content of this element. More... | |
void | SendKeys (string text) |
Simulates typing text into the element. More... | |
void | Submit () |
Submits this element to the web server. More... | |
void | Click () |
Clicks this element. More... | |
string | GetAttribute (string attributeName) |
Gets the value of the specified attribute for this element. More... | |
string | GetProperty (string propertyName) |
Gets the value of a JavaScript property of this element. More... | |
string | GetCssValue (string propertyName) |
Gets the value of a CSS property of this element. More... | |
void | EnterText (string text) |
Replace existing text input with provided. More... | |
TPage | Open< TPage > () |
Clicks on a wrapped WebElement and creates new page object instance of given type. More... | |
TPage | OpenInNewWindow< TPage > () |
Clicks on wrapped WebElement, waits until new window is opened and switches to it. More... | |
![]() | |
object | ExecuteScript (string script, params object[] args) |
Executes JavaScript in the context of the currently selected frame or window. More... | |
object | ExecuteAsyncScript (string script, params object[] args) |
Executes JavaScript asynchronously in the context of the currently selected frame or window. More... | |
ReadOnlyCollection< IWebElement > | FindElements (By @by) |
Finds all IWebElements within the current context using the given mechanism. More... | |
IWebElement | FindElement (By @by) |
Finds the first T:OpenQA.Selenium.IWebElement using the given method. More... | |
TElement | FindElement< TElement > (By @by) |
Finds the first IWebElement using given method and creates a page object of given type wrapping the element. More... | |
IList< TElement > | FindElements< TElement > (By @by) |
Finds all IWebElements within the current context using the given mechanism and creates page objects wrapping it. More... | |
override string | ToString () |
Describes actual page object type and wrapped search context. More... | |
Properties | |
string | InputSize [get, set] |
Gets or sets 'size' attribute of the underlying input element or null if it does not exist More... | |
string | MaxLength [get, set] |
Gets or sets 'maxlength' attribute of the underlying input element or null if it does not exist More... | |
string | Src [get, set] |
Gets or sets 'src' attribute of the underlying input element or null if it does not exist More... | |
string | Type [get, set] |
Gets or sets 'type' attribute of the underlying input element or null if it does not exist More... | |
![]() | |
bool | Disabled [get, set] |
Disabled/enabled control state More... | |
string | Value [get, set] |
Value assigned to control More... | |
![]() | |
string | Class [get, set] |
Gets or sets 'class' attribute of the underlying DOM element or null if it does not exist More... | |
IWebElement | FirstChild [get] |
First child node of the web element, as a web element More... | |
string | Id [get, set] |
Gets or sets 'id' attribute of the underlying DOM element or null if it does not exist More... | |
string | InnerHtml [get, set] |
HTML content of an element More... | |
IWebElement | LastChild [get] |
Last child node of the current element, as a web element More... | |
string | Name [get, set] |
Gets or sets 'name' attribute of the underlying DOM element or null if it does not exist More... | |
IWebElement | NextSibling [get] |
The next node of current web element, in the same tree level More... | |
IWebElement | ParentNode [get] |
A WebElement, representing the parent node of current element, or null if it has no parent More... | |
IWebElement | PreviousSibling [get] |
A previous node of current web element, in the same tree level More... | |
string | Style [get, set] |
Gets or sets 'style' attribute of the underlying DOM element or null if it does not exist More... | |
string | TextContent [get, set] |
Returns or sets the text from the element. On returning text, this property returns the value of all text nodes within the element node. On setting text, this property removes all child nodes and replaces them with a single text node. More... | |
string | Title [get, set] |
Gets or sets 'title' attribute of the underlying DOM element or null if it does not exist More... | |
IWebElement | WrappedElement [get] |
Returns underlying web element wrapped by current HtmlElement More... | |
string | TagName [get] |
Gets the tag name of this element. More... | |
string | Text [get] |
Gets the innerText of this element, without any leading or trailing whitespace, and with other whitespace collapsed. More... | |
bool | Enabled [get] |
Gets a value indicating whether or not this element is enabled. More... | |
bool | Selected [get] |
Gets a value indicating whether or not this element is selected. More... | |
Point | Location [get] |
Gets a Point object containing the coordinates of the upper-left corner of this element relative to the upper-left corner of the page. More... | |
Size | Size [get] |
Gets object containing the height and width of this element. More... | |
bool | Displayed [get] |
Gets a value indicating whether or not this element is displayed. More... | |
![]() | |
IPageObjectFactory | PageObjectFactory [get] |
Gets the page object factory used to initialize current page object instance. More... | |
IWebDriver | WrappedDriver [get] |
Gets the T:OpenQA.Selenium.IWebDriver wrapped by current page object instance. More... | |
Additional Inherited Members | |
![]() | |
HtmlControl (IWebElement webElement) | |
Initializes new instance of HTML element by calling base class constructor More... | |
![]() | |
WebDriverWrapper (ISearchContext webDriverOrWrapper) | |
Initializes wrapper converting provided object to WebDriver More... | |
Models HTML input element of any type and exposes it's attributes as properties
HtmlElements.Elements.HtmlInput.HtmlInput | ( | IWebElement | webElement | ) |
Initializes new instance of HTML element by calling base class constructor
webElement | WebElement wrapping WebDriver instance |
|
getset |
Gets or sets 'size' attribute of the underlying input element or null if it does not exist
|
getset |
Gets or sets 'maxlength' attribute of the underlying input element or null if it does not exist
|
getset |
Gets or sets 'src' attribute of the underlying input element or null if it does not exist
|
getset |
Gets or sets 'type' attribute of the underlying input element or null if it does not exist