When you start the loop, the elements are already identified, and it will loop through those elements, so the new element that appears it won't detect.
So just repeat the loop, new elements will be detected (if you have defined the correct Element selector )
Yes that's what i tried to do relaunch the Loop but it waste time on the already detected elements on the first loop. thanks for your answer mate !
My Solution :
Try using labels inside the loop Works fine
scroll
then get elements
add elements to an array
scroll again
get elements (even if they are the same)
add them to the array
In the end, delete all duplicates, and you have the full list.
if you want to understand when to stop, either add a counter and if the elements are always the same after 10 times of scrolling then it's probably the end
I was able to do what I want by adding "Execute javascript on element" to loop and then self.parentElement.parentElement.querySelector('span').textContent
But I am still interested if something similar can be done with XPATH or CSS
edit: XPATH syntax is something like this
[[FOR_EACH_CSS]] >AT>[[CYCLE_INDEX]] >XPATH> ../following-sibling::td[1]
now last thing I am missing is how to do it with CSS