InfoConnect for Unisys VBA Guide
WebElement Object Members

The following tables list the members exposed by WebElement.

Properties
 NameDescription
Public PropertyAllElementsGets all elements underneath the current element.  
Public PropertyCanHaveChildrenGets a value that indicates whether this element has child elements.  
Public PropertyChildrenGets all children of the current element.  
Public PropertyDocumentGets the HtmlDocument to which this element belongs.  
Public PropertyEnabledGets or sets whether the user can enter data into this element.  
Public PropertyFirstChildGets the next element below this element in the document tree.  
Public PropertyIdGets or sets a label by which to identify the element.  
Public PropertyInnerHtmlGets or sets the HTML markup underneath this element.  
Public PropertyInnerTextGets or sets the text assigned to the element.  
Public PropertyNameGets or sets the name of the element.  
Public PropertyNextSiblingGets the next element at the same level as this element in the document tree.  
Public PropertyOuterHtmlGets or sets the current element's HTML code.  
Public PropertyOuterTextGets or sets the current element's text.  
Public PropertyStyleGets or sets a comma-delimited list of styles for the current element.  
Public PropertyTagNameGets the name of the HTML tag.  
Top
Methods and Functions
 NameDescription
Public MethodClickClicks the link, if the Web element is a link.  
Public MethodExtractExtracts text that is delimited by pretext and posttext from an HTML text source.  
Public MethodGetAttributeGets the value of the named attribute on the element.  
Public MethodGetChildrenTagNamesGets all name tags of children.  
Public MethodGetElementGets the first Web element by an XPath path, relative to the current Web element.  
Public MethodGetElementsByTagNameGets a collection of elements in the HTML WebDocument by HTML. tagName.  
Public MethodGetTextGets text from the text field if the Web element is an input text type.  
Public MethodInvokeMember1Executes a method that is unique to the current element.  
Public MethodInvokeMember2Executes a method (with parameters) unique to the current element.  
Public MethodPutTextPuts text in the text field if the Web element is an input text type.  
Public MethodScrollIntoViewScrolls through the document that contains this element until the top or bottom edge of this element aligns with the top of the document's window.  
Public MethodSetAttributeSets the value of the named attribute on the element.  
Public MethodSubmitSubmits the form if the Web element is a form.  
Top
See Also

 

 


2015 Attachmate

Send Feedback