github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/inner_html/get_by_xpath.fql (about) 1 LET url = @lab.cdn.dynamic + "/#/lists" 2 LET doc = DOCUMENT(url, true) 3 4 LET expected = [ 5 {"details":'<h5 class="track-artist">Lil Tecca</h5><small class="track-name">Ransom</small>'}, 6 {"details":'<h5 class="track-artist">NLE Choppa</h5><small class="track-name">Shotta Flow (Feat. Blueface) [Remix]</small>'}, 7 {"details":'<h5 class="track-artist">Baby Jesus (DaBaby)</h5><small class="track-name">Suge</small>'}, 8 {"details":'<h5 class="track-artist">NLE Choppa</h5><small class="track-name">Shotta Flow 3</small>'}, 9 {"details":'<h5 class="track-artist">Lil Tecca </h5><small class="track-name">Lil Tecca - Did It Again</small>'}, 10 {"details":'<h5 class="track-artist">NLE Choppa</h5><small class="track-name">Shotta Flow</small>'}, 11 {"details":'<h5 class="track-artist">Ynw Melly</h5><small class="track-name">Dangerously In Love (772 Love Pt. 2)</small>'}, 12 {"details":'<h5 class="track-artist">POLO G</h5><small class="track-name">Polo G feat. Lil TJay - Pop Out</small>'}, 13 {"details":`<h5 class="track-artist">MUSTARD</h5><small class="track-name">Ballin' (feat. Roddy Ricch)</small>`}, 14 {"details":'<h5 class="track-artist">Lil Nas X</h5><small class="track-name">Panini</small>'}, 15 {"details":'<h5 class="track-artist">Juice WRLD</h5><small class="track-name">Juice Wrld - RUN</small>'}, 16 {"details":'<h5 class="track-artist">Shordie Shordie</h5><small class="track-name">Betchua (Bitchuary)</small>'}, 17 {"details":'<h5 class="track-artist">Post Malone</h5><small class="track-name">Goodbyes (feat. Young Thug)</small>'}, 18 {"details":'<h5 class="track-artist">LIL UZI VERT</h5><small class="track-name">Sanguine Paradise</small>'}, 19 {"details":'<h5 class="track-artist">Calboy</h5><small class="track-name">Envy Me</small>'}, 20 {"details":'<h5 class="track-artist">Ambjaay</h5><small class="track-name">Uno</small>'}, 21 {"details":'<h5 class="track-artist">Lil Tecca</h5><small class="track-name">Lil Tecca - Bossanova</small>'}, 22 {"details":'<h5 class="track-artist">Lil Baby</h5><small class="track-name">Baby</small>'}, 23 {"details":'<h5 class="track-artist">Lil Tjay</h5><small class="track-name">Lil Tjay - Brothers (Prod by JDONTHATRACK & Protegebeatz)</small>'}, 24 {"details":'<h5 class="track-artist">YK Osiris</h5><small class="track-name">Worth It</small>'} 25 ] 26 27 LET actual = ( 28 FOR item IN ELEMENTS(doc, '.track-list li') 29 RETURN { 30 details: INNER_HTML(item, X(".//*[contains(@class, 'track-details')]")), 31 } 32 ) 33 34 RETURN T::EQ(actual, expected)