|
Object callJS(String code) |
Parameters |
code | The script to execute. Use _qf_node as the reference for the HTML element. |
Returns | Whatever the code returns explicitely using a return statement, converted to the proper object type. Even
returning a DOM node, frame or document works. |
|
Object evalJS(String script) |
Parameters |
script | The script to execute. Use _qf_node as the reference for the HTML element. |
Returns | Whatever the script returns, converted to the proper object type. Even
returning a DOM node, frame or document works. |
|
DomNode[] getAllByCSS(String css) |
Parameters |
css | CSS-selector starting from that node. |
Returns | An array of all found nodes or null. |
|
DomNode[] getAllByXPath(String xpath) |
Parameters |
xpath | XPath starting from that node. |
Returns | An array of all found nodes or null. |
|
DomNode getByCSS(String css) |
Parameters |
css | CSS-selector starting from that node. |
Returns | The found node or null. |
|
DomNode getByXPath(String xpath) |
Parameters |
xpath | XPath starting from that node. |
Returns | The found node or null. |
|
Node[] getChildrenByTagName(String tagName) |
Parameters |
tagName | The tag name to look for. |
Returns |
An array of child nodes with the given tag name. If none are found, an empty array is
returned.
|
|
String getId() |
Returns | The cached ID of the node. |
|
int[] getLocationOnScreen() |
Returns | The node's geometry in the form [x, y, width, height]. |
|
boolean hasCSSClass(String cl) |
Parameters |
cl | The name of the css-class. |
Returns | True, if the node has this css-class, otherwise false. |
|
boolean hasFocus() |
Returns |
True if the node has the keyboard focus.
|
|
boolean isShowing() |
Returns |
True if the node is visible.
|
|
void requestFocus() |
|
void scrollVisible() |
|
void setAttribute(String name, String value) |
Parameters |
name | The name of the attribute. |
value | The value to set. |
|
void toJS(String name) |
Parameters |
name | The name of the variable to set. |
|