58.10.4 The DomNode class
The DomNode class is derived from Node and also resides in the
package de.qfs.apps.qftest.client.web.dom. In addition to the methods
defined in the Node class and explained above, DomNode
provides the following:
_qf_node as the reference for the HTML element.return statement, converted to the proper object type. Even
returning a DOM node, frame or document works.
Evaluate some JavaScript code in the context of this node's document by calling window.eval().
Note
In most cases, the method callJS should be used instead, since eval()
might be restricted by the document's Content Security Policy (CSP).
_qf_node as the reference for the HTML element.Get all nodes, which are determined via CSS-selectors.
Get all nodes, which are determined via XPath.
Get a node, which is determined via a CSS-selector.
Get a node, which is determined via XPath.
Get all direct child nodes of this node with a given tag name.
Get the cached ID of the node which may have been processed by an
IdResolver as described in "The IdResolver interface". The
original, unmodified 'ID' attribute is available via
getAttribute("id").
Get the location and size of the node relative to desktop.
Check, whether the node has a specified css-class.
Test whether the node is visible or can be made visible by scrolling.
Tell the node to request the keyboard focus. This is a best-effort implementation. Whether the node actually receives the keyboard focus depends on the browser and operating system settings.
Try to scroll the page or a frame so as to make the node fully visible. This is a best effort implementation. Whether the node can actually be made visible depends on the browser and operating system settings.
Execute some JavaScript code in a function in the context of this node's document. This often works even if the call of
eval()is restricted by a Content Security Policy (CSP).