public interface Dom
Modifier and Type | Method and Description |
---|---|
default Session |
clearOptions(String selector)
Clears any existing selected items of <select> element.
|
default Session |
clearOptions(String selector,
Object... args)
Clears any existing selected items of <select> element.
|
default Session |
focus(Integer contextId,
String selector)
The HTMLElement.focus() method sets focus on the specified element, if it
can be focused.
|
default Session |
focus(Integer contextId,
String selector,
Object... args)
The HTMLElement.focus() method sets focus on the specified element, if it
can be focused.
|
default Session |
focus(String selector)
The HTMLElement.focus() method sets focus on the specified element, if it can be focused.
|
default String |
getAttribute(Integer contextId,
String selector,
String name,
Object... args)
Retrieves an attribute value by name.
|
default String |
getAttribute(String selector,
String name)
Retrieves an attribute value by name.
|
default String |
getAttribute(String selector,
String name,
Object... args)
Retrieves an attribute value by name.
|
default Map<String,String> |
getAttributes(Integer contextId,
String selector,
Object... args)
Gets attributes of the node or
Collections.emptyMap() otherwise. |
default Map<String,String> |
getAttributes(String selector)
Gets attributes of the node or
Collections.emptyMap() otherwise. |
default Map<String,String> |
getAttributes(String selector,
Object... args)
Gets attributes of the node or
Collections.emptyMap() otherwise. |
default BoxModel |
getBoxModel(Integer contextId,
String selector,
Object... args)
Gets box model of an element
Box model hold the height, width and coordinate of the element
|
default BoxModel |
getBoxModel(String selector,
Object... args)
Gets box model of an element
Box model hold the height, width and coordinate of the element
|
default Point |
getClickablePoint(String selector) |
default Point |
getClickablePoint(String selector,
Object... args) |
default List<Option> |
getOptions(String selector)
The list of options for a <select> element consists of all the option element children of the select element,
and all the <option> element children of all the <optgroup> element children of the <select> element.
|
default List<Option> |
getOptions(String selector,
Object... args)
The list of options for a <select> element consists of all the option element children of the select element,
and all the <option> element children of all the <optgroup> element children of the <select> element.
|
default String |
getOuterHtml(String selector)
Returns node's HTML markup.
|
default String |
getOuterHtml(String selector,
Object... args)
Returns node's HTML markup.
|
default int |
getSelectedIndex(String selector)
The HTMLSelectElement.selectedIndex() is a int that reflects the index of the first selected <option> element.
|
default int |
getSelectedIndex(String selector,
Object... args)
The HTMLSelectElement.selectedIndex() is a int that reflects the index of the first selected <option> element.
|
default String |
getText(String selector)
textContent property represents the text content of a node and its descendants.
|
default String |
getText(String selector,
Object... args)
textContent property represents the text content of a node and its descendants.
|
Session |
getThis() |
default String |
getValue(String selector)
Gets the value of the <input> control.
|
default String |
getValue(String selector,
Object... args)
Gets the value of the <input> control.
|
default boolean |
isChecked(String selector)
Indicates whether the <input> element is checked or not.
|
default boolean |
isChecked(String selector,
Object... args)
Indicates whether the <input> element is checked or not.
|
default boolean |
isDisabled(String selector)
Indicates whether the <input> element is disabled or not.
|
default boolean |
isDisabled(String selector,
Object... args)
Indicates whether the <input> element is disabled or not.
|
default void |
scrollIntoViewIfNeeded(String selector) |
default void |
scrollIntoViewIfNeeded(String selector,
Object... args) |
default Session |
selectInputText(String selector)
The HTMLInputElement.select() method selects all the text in a <textarea> element
or an <input> element with a text field. |
default Session |
selectInputText(String selector,
Object... args)
The HTMLInputElement.select() method selects all the text in a <textarea> element
or an <input> element with a text field. |
default Session |
setAttribute(Integer contextId,
String selector,
String name,
Object value,
Object... args)
Sets attribute for an element
|
default Session |
setAttribute(String selector,
String name,
Object value)
Sets attribute for an element
|
default Session |
setAttribute(String selector,
String name,
Object value,
Object... args)
Sets attribute for an element
|
default Session |
setChecked(String selector,
boolean checked)
Sets the value of the checked property.
|
default Session |
setChecked(String selector,
boolean checked,
Object... args)
Sets the value of the checked property.
|
default Session |
setDisabled(String selector,
boolean disabled)
Sets the value of the disabled property.
|
default Session |
setDisabled(String selector,
boolean disabled,
Object... args)
Sets the value of the disabled property.
|
default Session |
setFiles(String selector,
Path... files)
Sets files for the given file input element.
|
default Session |
setFiles(String selector,
String... files)
Sets files for the given file input element.
|
default Session |
setSelectedIndex(String selector,
int index)
Set selectedIndex of <option> element.
|
default Session |
setSelectedIndex(String selector,
int index,
Object... args)
Set selectedIndex of <option> element.
|
default Session |
setSelectedOptions(String selector,
List<Integer> indexes)
Set selected indices of <select> element.
|
default Session |
setSelectedOptions(String selector,
List<Integer> indexes,
Object... args)
Set selected indices of <select> element.
|
default Session |
setValue(String selector,
Object value)
Sets the value of the <input> input control.
|
default Session |
setValue(String selector,
Object value,
Object... args)
Sets the value of the <input> control.
|
default String getText(String selector)
selector
- css or xpath selectordefault String getText(String selector, Object... args)
selector
- css or xpath selectorargs
- format stringdefault Session selectInputText(String selector)
selector
- css or xpath selectordefault Session selectInputText(String selector, Object... args)
selector
- css or xpath selectorselector
- format stringdefault Session focus(String selector)
selector
- css or xpath selectordefault Session focus(Integer contextId, String selector)
selector
- css or xpath selectorcontextId
- Context id of the framedefault Session focus(Integer contextId, String selector, Object... args)
selector
- css or xpath selectorargs
- format stringcontextId
- Context id of the framedefault int getSelectedIndex(String selector)
selector
- css or xpath selectordefault int getSelectedIndex(String selector, Object... args)
selector
- css or xpath selectorargs
- format stringdefault Session setSelectedIndex(String selector, int index)
setSelectedOptions(String, List)
method if the multiple attribute is specified for a <select> element.selector
- css or xpath selectorindex
- he index of the first selected <option> element.default Session setSelectedIndex(String selector, int index, Object... args)
setSelectedOptions(String, List, Object...)
method if the multiple attribute is specified for a <select> element.selector
- css or xpath selectorindex
- he index of the first selected <option> element.default List<Option> getOptions(String selector)
css
- selectordefault List<Option> getOptions(String selector, Object... args)
css
- selectorargs
- format stringdefault Session clearOptions(String selector)
selector
- css or xpath selectordefault Session clearOptions(String selector, Object... args)
selector
- css or xpath selectordefault Session setSelectedOptions(String selector, List<Integer> indexes)
selector
- css or xpath selectorindexes
- indices of selected items.default Session setSelectedOptions(String selector, List<Integer> indexes, Object... args)
selector
- css or xpath selectorindexes
- indices of selected items.args
- format stringdefault Session setFiles(String selector, Path... files)
selector
- css or xpath selectorfiles
- list of file paths to setdefault Session setFiles(String selector, String... files)
selector
- css or xpath selectorfiles
- list of file paths to setdefault boolean isDisabled(String selector)
selector
- css or xpath selectortrue
if <input> element is disableddefault boolean isDisabled(String selector, Object... args)
selector
- css or xpath selectorargs
- format stringtrue
if <input> element is disableddefault boolean isChecked(String selector)
selector
- css or xpath selectortrue
if radio or checkbox is selecteddefault boolean isChecked(String selector, Object... args)
selector
- css or xpath selectorargs
- format stringtrue
if radio or checkbox is selecteddefault Session setChecked(String selector, boolean checked)
selector
- css or xpath selectorchecked
- the new checked statedefault Session setChecked(String selector, boolean checked, Object... args)
selector
- css or xpath selectorchecked
- the new checked stateargs
- format stringdefault Session setDisabled(String selector, boolean disabled)
selector
- css or xpath selectordisabled
- the new disabled statedefault Session setDisabled(String selector, boolean disabled, Object... args)
selector
- css or xpath selectordisabled
- the new disabled stateargs
- format stringdefault Session setValue(String selector, Object value)
selector
- css or xpath selectorvalue
- the new valuedefault Session setValue(String selector, Object value, Object... args)
selector
- css or xpath selectorvalue
- the new valueargs
- format stringdefault String getValue(String selector)
selector
- css or xpath selectordefault String getValue(String selector, Object... args)
selector
- css or xpath selectorargs
- format stringdefault Map<String,String> getAttributes(String selector)
Collections.emptyMap()
otherwise.selector
- css or xpath selectordefault Map<String,String> getAttributes(String selector, Object... args)
Collections.emptyMap()
otherwise.selector
- css or xpath selectorargs
- format stringdefault Map<String,String> getAttributes(Integer contextId, String selector, Object... args)
Collections.emptyMap()
otherwise.selector
- css or xpath selectorargs
- format stringcontextId
- Frame context iddefault String getAttribute(String selector, String name)
selector
- css or xpath selectorname
- the name of the attribute to retrievenull
if there is no such attribute.default String getAttribute(String selector, String name, Object... args)
selector
- css or xpath selectorname
- the name of the attribute to retrieveargs
- format stringnull
if there is no such attribute.default String getAttribute(Integer contextId, String selector, String name, Object... args)
selector
- css or xpath selectorname
- the name of the attribute to retrieveargs
- format stringnull
if there is no such
attribute.default Session setAttribute(String selector, String name, Object value, Object... args)
selector
- css or xpath selectorname
- the name of the attribute to create or altervalue
- value to set in string formargs
- format stringdefault Session setAttribute(Integer contextId, String selector, String name, Object value, Object... args)
selector
- css or xpath selectorname
- the name of the attribute to create or altervalue
- value to set in string formargs
- format stringdefault Session setAttribute(String selector, String name, Object value)
selector
- css or xpath selectorname
- the name of the attribute to create or altervalue
- value to set in string formdefault BoxModel getBoxModel(String selector, Object... args)
selector
- css or xpath selectorargs
- fromat stringnull
otherwisedefault BoxModel getBoxModel(Integer contextId, String selector, Object... args)
selector
- css or xpath selectorargs
- fromat stringnull
otherwisedefault String getOuterHtml(String selector)
selector
- css or xpath selectordefault String getOuterHtml(String selector, Object... args)
selector
- css or xpath selectorargs
- fromat stringdefault void scrollIntoViewIfNeeded(String selector)
Session getThis()
Copyright © 2017, 2019–2019 WebFolder OÜ. All rights reserved.