the ElementFactory
representing a month field
The attribute value of the given attribute name of this element, wrapped in a Some
,
or None
if no such attribute exists on this Element
.
The attribute value of the given attribute name of this element, wrapped in a Some
,
or None
if no such attribute exists on this Element
.
This method invokes getAttribute
on the underlying WebElement
, passing in the
specified name
.
the attribute with the given name, wrapped in a Some
, else None
Clears this element.
Clears this element.
Clicks this element.
Clicks this element.
Clicks this element after animation has finished.
Clicks this element after animation has finished.
Detects the location of the Element to click and waits duration
.
After this the location is checked again.
The click is only processed if the location and size was not modified.
AssertionError
is thrown otherwise.
The value for the given css attribute of this element, wrapped in a Some
,
or None
if no such css attribute exists on this Element
.
The value for the given css attribute of this element, wrapped in a Some
,
or None
if no such css attribute exists on this Element
.
This method invokes getCssValue
on the underlying WebElement
, passing in the
specified name
.
the attribute with the given name, wrapped in a Some
, else None
Returns the result of invoking equals
on the underlying Element
, passing
in the specified other
object.
Returns the result of invoking equals
on the underlying Element
, passing
in the specified other
object.
the object with which to compare for equality
true if the passed object is equal to this one
Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window.
Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window.
Unlike executing synchronous JavaScript, scripts executed with this method must explicitly signal they are finished by invoking the provided callback. This callback is always injected into the executed function as the last argument.
The first argument passed to the callback function will be used as the script's result. This value will be handled as follows:
Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these.
An exception will be thrown if the arguments do not meet these criteria.
The arguments will be made available to the JavaScript via the "arguments" variable. (Note that although this
behavior is specified by
Selenium's JavascriptExecutor Javadoc, it may still be possible for the underlying
JavascriptExecutor
implementation to return an objects of other types. For example,
HtmlUnit
has been observed to return a java.util.Map
for a Javascript object.)
the JavaScript to execute
the arguments to the script, may be empty
One of Boolean, Long, String, List, WebElement, or null (following Selenium's JavascriptExecutor Javadoc)
Executes JavaScript in the context of the currently selected frame or window.
Executes JavaScript in the context of the currently selected frame or window. The script fragment provided will be executed as the body of an anonymous function.
Within the script, you can use document
to refer to the current document.
Local variables will not be available once the script has finished executing, but global variables will.
To return a value (e.g. if the script contains a return statement), then the following steps will be taken:
Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these.
An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available
to the JavaScript via the "arguments" variable. (Note that although this behavior is specified by
Selenium's JavascriptExecutor Javadoc, it may still be possible for the underlying
JavascriptExecutor
implementation to return an objects of other types. For example,
HtmlUnit
has been observed to return a java.util.Map
for a Javascript object.)
the JavaScript to execute
the arguments to the script, may be empty
One of Boolean, Long, String, List or WebElement. Or null (following Selenium's JavascriptExecutor Javadoc)
the ElementFactory
representing a month field
the ElementFactory
representing a month field
Returns the result of invoking hashCode
on the underlying Element
.
Returns the result of invoking hashCode
on the underlying Element
.
a hash code for this object
Indicates whether this Element
is displayed.
Indicates whether this Element
is displayed.
This invokes isDisplayed
on the underlying WebElement
.
true
if the element is currently displayed
Indicates whether this Element
is enabled.
Indicates whether this Element
is enabled.
This invokes isEnabled
on the underlying WebElement
, which
will generally return true
for everything but disabled input elements.
true
if the element is currently enabled
Indicates whether this Element
is selected.
Indicates whether this Element
is selected.
This method, which invokes isSelected
on the underlying WebElement
,
is relevant only for input elements such as checkboxes, options in a single- or multiple-selection
list box, and radio buttons. For any other element it will simply return false
.
true
if the element is currently selected or checked
The XY location of the top-left corner of this Element
.
The XY location of the top-left corner of this Element
.
This invokes getLocation
on the underlying WebElement
.
the location of the top-left corner of this element on the page
The XY location and width/height of this Element
.
The XY location and width/height of this Element
.
This invokes getRect
on the underlying WebElement
.
the location and size of this element on the page
scroll the element into the view
scroll the element into the view
Send keys to the Element.
Sets the amount of time to wait for an asynchronous script to finish execution before throwing an exception.
Sets the amount of time to wait for an asynchronous script to finish execution before throwing an exception.
the amount of time to wait for an asynchronous script to finish execution before throwing exception
The width/height size of this Element
.
The width/height size of this Element
.
This invokes getSize
on the underlying WebElement
.
the size of the element on the page
Submits the current form.
Submits the current form.
Returns the visible (i.e., not hidden by CSS) text of this element, including sub-elements, without any leading or trailing whitespace.
Returns the visible (i.e., not hidden by CSS) text of this element, including sub-elements, without any leading or trailing whitespace.
the visible text enclosed by this element, or an empty string, if the element encloses no visible text
Returns the result of invoking toString
on the underlying Element
.
Returns the result of invoking toString
on the underlying Element
.
a string representation of this object
Gets this field's value.
Gets this field's value.
This method invokes getAttribute("value")
on the underlying WebElement
.
the field's value
Sets this field's value.
webElement can be used to access the underlying selenium WebElement.
webElement can be used to access the underlying selenium WebElement.
the underlying WebElement
This class is part of the PageObject DSL.
This class enables syntax such as the following:
the
ElementFactory
representing a month field