Inheritance diagram for HTML_Object:

Public Member Functions | |
| HTML_Object (const QString &n, const QString &jsref) | |
| virtual const char * | className () const |
| const char * | domClassName () const |
| const char * | tagName () const |
| const char * | innerText () const |
| const char * | innerHTML () const |
| const char * | id () const |
| const char * | title () const |
| const char * | styleDisplay () const |
| bool | visible () const |
| int | x () const |
| int | y () const |
| int | width () const |
| int | height () const |
| HTML_Object * | firstChild () |
| HTML_Object * | lastChild () |
| int | numChildren () const |
| HTML_Object * | nextSibling () |
| HTML_Object * | previousSibling () |
| HTML_Object * | parentElement () |
| HTML_XPathResult | evaluateXPath (const char *statement) const |
| void | setProperty (const char *propName, const char *value) |
| void | setProperty (const char *propName, int value) |
| void | setProperty (const char *propName, bool value) |
| const char * | property (const char *propName) const |
| const char * | invoke (const char *methodName) const |
| const char * | invoke (const char *methodName, const char *arg1) const |
| const char * | invoke (const char *methodName, const char *arg1, const char *arg2) const |
| operator const char * () const | |
| void | invalidate () |
| virtual void | click (int mod=0, int x=0, int y=0) |
| virtual void | doubleClick (int mod=0, int x=0, int y=0) |
| QString | name () const |
| const char * | hierarchicalQualifiedName () const |
Protected Member Functions | |
| QString | jsReference () const |
| Squish::WebHook * | webHook () const |
| QString | eval (const QString &code) const |
| QRect | getElementRect () const |
| QString | clickOn (const char *jsref, int m=0, int x=0, int y=0) |
| QString | dblClickOn (const char *jsref, int m=0, int x=0, int y=0) |
Properties | |
| char | domClassName |
| char | tagName |
| char | innerText |
| char | innerHTML |
| char | title |
| int | numChildren |
| char | id |
| char | styleDisplay |
| bool | visible |
| int | x |
| int | y |
| int | width |
| int | height |
This is generic class for all HTML elements. The functions and properties defined in this class are available for all objects which are returned from Squish's findObject() function.
|
|
Returns the specialized class name of the HTML object, such as HTML_Button. Reimplemented in HTML_Array, HTML_Document, HTML_Form, HTML_FormElement, HTML_ButtonBase, HTML_Button, HTML_RadioButton, HTML_CheckBox, HTML_ImageButton, HTML_TextBase, HTML_Text, HTML_TextArea, HTML_Option, HTML_Select, HTML_Anchor, HTML_CustomItemView, and HTML_CustomItem. |
|
|
Evaluates the XPath statement statement and returns the result. As context node for the XPath evaluation this object is used. This allows to efficiently operate on the DOM document of the web application to e.g. retrieve elements and access them. |
|
|
Returns the first child of the element or an invalid object, if there is none. |
|
|
Returns the hierarchical, qualified name of this object. |
|
||||||||||||||||
|
Invokes the function methodName on this object and passes arg1 and arg2 to it and returns the return value of this call as string. |
|
||||||||||||
|
Invokes the function methodName on this object and passes arg1 to it and returns the return value of this call as string. |
|
|
Invokes the function methodName on this object and returns the return value of this call as string. |
|
|
Returns the last child of the element or an invalid object, if there is none. |
|
|
Returns the internal JavaScript reference name of this object. |
|
|
Returns the next sibling of this element or an invalid object, if there is none. |
|
|
Returns the parent element of this element or an invalid object, if there is none (which can only be the case for the document node of a web site). |
|
|
Returns the previous sibling of this element or an invalid object, if there is none. |
|
|
Returns the value (as string) of the property propName of this object. |
|
||||||||||||
|
Sets the property propName of this object to the boolean value. |
|
||||||||||||
|
Sets the property propName of this object to the number value. |
|
||||||||||||
|
Sets the property propName of this object to the string value. |
|
|
Returns the object's class name as defined by DOM. |
|
|
Returns the height of the element. |
|
|
Returns the id of the element. |
|
|
Returns the inner text of the element with HTML markup. |
|
|
Returns the inner text of the element without HTML markup. |
|
|
Returns the number of child nodes of this element. |
|
|
Returns the style.display of the element. |
|
|
Returns the HTML tag name of the object (such as DIV or INPUT) |
|
|
Returns the title of the element. |
|
|
Returns the visibility of the element. |
|
|
Returns the width of the element. |
|
|
Returns the absolute X position of the element. |
|
|
Returns the absolute Y position of the element. |
1.4.4