node is either not visible or not an HTMLElement / GetAttributes: rpc error: Could not find node with given id #672
Unanswered
PierreBrisorgueil
asked this question in
Q&A
Replies: 3 comments
-
Hey, thanks for reporting the issue! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use LET doc = DOCUMENT('https://soundcloud.com/charts/top', { driver: "cdp" })
LET endSelector = ''
LET listSelector = '.chartTracks ul'
WAIT_ELEMENT(doc, listSelector)
LET list = ELEMENT(doc, listSelector)
LET initialCount = ELEMENTS_COUNT(list, 'li')
LET lastItem = 50
LET preload = (
FOR i DO WHILE !ELEMENT_EXISTS(doc, '.chartTracksEnd')
LET initial = i > 0 ? SCROLL_BOTTOM(doc) && WAIT(500) && SCROLL_TOP(doc) && false : true
RETURN NONE
)
WAIT_ELEMENT(list, FMT('li:nth-child({})', lastItem))
FOR track, i IN ELEMENTS(list, 'li')
RETURN {
num: i + 1,
artist: TRIM(INNER_TEXT(track, '.chartTrack__details .chartTrack__username')),
track: TRIM(INNER_TEXT(track, '.chartTrack__details .chartTrack__title'))
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, i found a strange behavior during my test for : #547
I may have misunderstood something.
node is either not visible or not an HTMLElement
GetAttributes: rpc error: Could not find node with given id
obtained on another site in the same way, load a list, then browse the elements, and click on it until you get to the invisible one. Discord Mp for example. Probably linked to #80
Beta Was this translation helpful? Give feedback.
All reactions