@ericarias said in Getting consistent results with element seletors:
What is the best method to use to make sure that the elements are always found.
Just avoid using automatically generated selectors by BAS.
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
@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 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