scrapeElement Method
Returns the content of the first element on the current webpage matching the given CSS-selector.
See also: https://www.w3schools.com/cssref/css_selectors.asp
Syntax
clsIE.scrapeElement( cssSelector )
Parameters
Name | Type | Description |
---|---|---|
clsIE | The name of an object of type clsIE | |
cssSelector | String | Required. Pattern to select an element on the current webpage. |
Return value
String : The content of the element selected. When not found an empty string is returned.
clsIEtag:clsIE
Example
Dim IE As New clsIE
IE.location = "https://www.w3schools.com"
MsgBox "The title of the website : " & IE.scrapeElement("title")