mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / InspectNode Method

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.

In This Topic
    InspectNode Method
    In This Topic
    Description

    Draws an inspector rectangle around the bounds of an HTML5 element.

    Syntax
    Visual Basic
    Public Sub InspectNode( _
       ByVal Selector As String _
    ) 
    Parameters
    Selector

    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.

    Remarks

    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.

    Example
    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
    See Also