incorrect element count showing
-
I'm trying to check how many whatsapp conversations that i have but it's displaying up to 17 then stop even if i have 30+.
Is there any solution to this? All of the elements are getting marked with the blue text so they are being found but not counted properly.
-
@rekaa0251 said in incorrect element count showing:
I'm trying to check how many whatsapp conversations that i have but it's displaying up to 17 then stop even if i have 30+.
Is there any solution to this? All of the elements are getting marked with the blue text so they are being found but not counted properly.
The problem is most likely with the selector
-
@Fox Tried all possible, they all wont show the total number. It's super weird, might be some security stuff maybe.
-
Because elements in whatsapp web are dynamic, they change as you scroll, so you select the first 17, scroll, and those elements will change
-
@Hycore Is there any solution to this?
-
bump, anyone can help me :) thanks so much
-
Here you can see: all the elements has this title things
-
@rekaa0251 Get all the elements and then scroll by 22 users and get the variable again, add all the values to an array so you can get them at the end
-
@Hycore The problem is that the elements is not is a row so i cannot know which element is on the bottom or which is on the top, maybe theres a possiblity to just scroll in the element instead?
-
@rekaa0251 What you can do is:
scroll
then get elements
add elements to an array
scroll again
get elements (even if they are the same)
add them to the arrayIn 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