Skip to content

Commit e484dca

Browse files
committed
add use of querySelectorAll to example
1 parent 3f92775 commit e484dca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/examples/ExampleHrew.bas

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ Private Sub testNewWindows()
7777
Set td = td.NextSibling
7878
Loop
7979

80+
Dim nodes As Dictionary
81+
Set nodes = browser.querySelectorAll("#VisibleReportContentMainRptViewerID_ctl09 table table table table > tbody > tr:nth-child(3) td")
82+
Dim columnCount As Long
83+
columnCount = 7
84+
For Each v In nodes.Items
85+
Set td = v
86+
Debug.Print td.Value & " -- " & td.innerText
87+
columnCount = columnCount - 1: If columnCount < 1 Then Exit For
88+
Next v
89+
8090
' return to original/main window
8191
browser.switchToMainWindow
8292
browser.cdp.Page.BringToFront

0 commit comments

Comments
 (0)