Draws an inspector rectangle around the bounds of an HTML5 element.
A CSS3 Selector string of a single HTML5 element.
If you are unfamiliar with CSS3 Selectors have a look in Finding the correct CSS3 Selector article.
Draws an inspector rectangle around the bounds of an HTML5 element.
Visual Basic |
---|
Public Sub InspectNode( _ ByVal Selector As String _ ) |
A CSS3 Selector string of a single HTML5 element.
If you are unfamiliar with CSS3 Selectors have a look in Finding the correct CSS3 Selector article.
This method provides the exact same functionality with Chromium DevTools Inspect Node context command.
The inspector rectangle is an overlay and does not synchronize with page scrolling.
You must care for the hiding of the overlay when the page scrolls, or if a different page is loaded.
Private Sub HTML5_SelectNode(ByVal Selector As String, Optional Contents As Boolean) NoEvents = True If Contents Then WebKitX.SelectElement Selector, False, True Wait 500 Else WebKitX.InspectNode Selector Wait 50 HTML5_ReadSelectorCSS End If HTML5_SelectSource Selector NoEvents = False End Sub