Skip to content

Commit 5b1b317

Browse files
committed
add some additional comments
1 parent 1f84a36 commit 5b1b317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AutomateBrowser.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ End Function
977977
' convenience function to convert "abc def" class list into CSS format compatible with querySelectorAll
978978
' classList is a space separated list of class names e.g. "classname1 classname2"
979979
' or optionally an element type with class list in in square brackets, e.g. "input[classname1 classname2]"
980+
' output format: element[class~='classname1'][class~='classname2'][...]
980981
Public Function getNodesByClassName(ByVal classList As String, Optional ByVal rootId As Integer = 0, Optional ByVal frameId As String = vbNullString, _
981982
Optional ByVal depth As Integer = -1, Optional ByVal pierce As Boolean = False) As Dictionary ' of cdpDomNode
982983
Dim selector As String, ndx As Integer
@@ -1009,6 +1010,7 @@ End Function
10091010
' if frameId = "" then assumes executing in main document context
10101011
' returns a Dictionary of cdpDomNodes matching selector, see getDomNodes
10111012
' Note: resulting Dictionary will be empty (0 items) if an error or no matching elements found
1013+
' see: https://www.w3.org/TR/CSS21/selector.html%23id-selectors for a quick overview of selector formatting
10121014
Public Function querySelectorAll(ByVal selector As String, Optional ByVal rootId As Integer = 0, Optional ByVal frameId As String = vbNullString, _
10131015
Optional ByVal depth As Integer = -1, Optional ByVal pierce As Boolean = False) As Dictionary ' of cdpDomNode
10141016
On Error GoTo errHandler

0 commit comments

Comments
 (0)