WebElementObject
represents an element of an open webpage operated on by WebExecute.
Details
- WebExecute supports the following commands related to WebElementObject:
-
"LocateElements"elem give the list of elements on a webpage matching elem "ClickElement"elem click an element on a webpage (e.g. a hyperlink) "HoverElement"elem hover over an element on a webpage "TypeElement"{elem,"text"} type text into an element on a webpage (e.g. an input field) "SubmitElement"elem submit a form using the specified element (e.g. a button) "ElementSelected"elem whether an element is selected "ElementEnabled"elem whether an element is enabled "ElementTag"elem the HTML tag for the element "ElementText"elem the text, if any, associated with an element "HideElement"elem make an element invisible "ShowElement"elem make an element visible
Examples
Basic Examples (2)
Use WebExecute to locate a WebElementObject link on a page:
Use WebExecute to find the text of a WebElementObject:
Click the WebElementObject link:
Get all the elements for the <p> (paragraph) tag:
Hide all the paragraphs of text on the page:
All text paragraphs are now hidden:
Text
Wolfram Research (2019), WebElementObject, Wolfram Language function, https://reference.wolfram.com/language/ref/WebElementObject.html.
CMS
Wolfram Language. 2019. "WebElementObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WebElementObject.html.
APA
Wolfram Language. (2019). WebElementObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WebElementObject.html