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