WebElement (gb.qt4.webkit)

Since 3.4

That class provides convenient access to DOM elements in a WebFrame.

A WebElement object allows easy access to the document model, represented by a tree-like structure of DOM elements. The root of the tree is called the document element and can be accessed using WebFrame.Document.

Specific elements can be accessed using FindAll and FindFirst. These elements are identified using CSS selectors.

Alternatively you can traverse the document manually using the First, Next, Parent... properties.

This class is not creatable.
This class acts like a
Returns the value of an attribute. If the attribute does not exist, NULL is returned.
read
/
Set the value of an attribute.
write
array.

Properties

Methods
A synonymous for First.
Child  
Returns the list of classes of this element.
Classes  
Returns the document which this element belongs to.
Document  
Returns the element's first child.
First  
Returns the web frame which this element is a part of.
Frame  
Returns the geometry of this element, relative to its containing frame.
Geometry  
Either:
HTML  
Returns TRUE if the element has keyboard input focus; otherwise, returns FALSE.
HasFocus  
Either:
InnerHTML  
Returns the element's last child.
Last  
Returns the element's next sibling.
Next  
Returns the parent element of this element.
Parent  
Returns the element's previous sibling.
Previous  
Returns a virtual array for manipulating the element's custom CSS style.
Style  
Returns the tag name of this element.
Tag  
Appends the result of parsing markup as the element's last child.
Add  
Inserts the result of parsing markup after this element.
AddAfter  
Inserts the result of parsing markup before this element.
AddBefore  
Adds the specified class with the name Class to the element.
AddClass  
Prepends the result of parsing markup as the element's first child.
AddFirst  
Removes all children from this element.
Clear  
Removes this element from the document.
Delete  
Encloses the contents of this element with the result of parsing markup. This element becomes the child of the deepest descendant within markup.
Enclose  
Executes JavaScript code with this element as this object.
Eval  
Returns a new list of child elements matching the given CSS selector selectorQuery. If there are no matching elements, an empty list is returned.
FindAll  
Returns the first child element that matches the given CSS selector selectorQuery.
FindFirst  
Returns TRUE if this element has an attribute with the given name; otherwise returns FALSE.
HasAttribute  
Paints the element into the current painting device.
Paint  
Removes the attribute with the given name from this element.
RemoveAttribute  
Removes the specified class with the given name from the element.
RemoveClass  
Replaces this element with the result of parsing markup.
Replace  
Gives keyboard input focus to this element.
SetFocus