Package-level declarations

Types

Link copied to clipboard
value class XPathExpression(val value: String)
value class XPathExpression(val value: String)

XPath expression.

Properties

Link copied to clipboard

Returns the absolute URL of the image located at this point, or an empty string if there is no image at the point.

Link copied to clipboard

Returns the absolute URL of the link DOM element at this point, or an empty string if there is no link at the point.

Link copied to clipboard

Returns HTML attributes of this element.

Link copied to clipboard

Returns the document HTML element that usually represents HTML tag, if any.

Link copied to clipboard

The element, on which these attributes are specified.

Link copied to clipboard

Returns the currently focused element in the document, if any.

Link copied to clipboard

HTML element for the form that contains this control, if any.

Link copied to clipboard

Returns a string with the HTML content of this element, or an empty string if the element does not have inner HTML.

Link copied to clipboard

Returns a string with the content of the element and its descendants, or an empty string if this element does not have a content.

Link copied to clipboard

Returns coordinates of the point relative to the node.

Link copied to clipboard

Returns the next node in the document tree, if any.

Link copied to clipboard

Returns the Node at this point, or null if there is no node at the point.

Link copied to clipboard

A list of the option elements of the select element.

Link copied to clipboard

Returns a string with the HTML serialization of this element and its descendants.

Link copied to clipboard

Returns the parent of this node, if any.

Link copied to clipboard

Returns the previous node in the document tree, if any.

Link copied to clipboard

Number of the specified attributes.

Link copied to clipboard

Returns the link Element when a link is located at this point, or null if there is no link element at the point.

Link copied to clipboard

A string that represents the value associated with the form control.

Link copied to clipboard

Returns XPathExpression that represents path to this Node, or an empty expression if it is not available.

Functions

Link copied to clipboard

Evaluates the given expression for the node and returns XPathResult of the XPathResultType.ANY type.

fun Node.evaluate(expression: XPathExpression, type: <Error class: unknown class>): XPathResult
fun Node.evaluate(expression: XPathExpression, type: <Error class: unknown class>): XPathResult

Evaluates the given expression for the node and returns XPathResult of the given type.

Link copied to clipboard

Returns the first Element found in the current search context by the given className, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given cssSelector, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given id, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given name, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given tagName, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given className.

Link copied to clipboard

Returns the first Element found in the current search context by the given cssSelector.

Link copied to clipboard

Returns the first Element found in the current search context by the given id.

Link copied to clipboard

Returns the first Element found in the current search context by the given name.

Link copied to clipboard

Returns the first Element found in the current search context by the given tagName.

Link copied to clipboard
operator fun ElementAttributes.set(name: String, value: String)
operator fun ElementAttributes.set(name: String, value: String)

Adds a new attribute with the given name and value.