There are too many duplicate elements here but I only want to click on 3-5 buttons. How do I build the script
please help me
You need to change the element selector. Open the page code and find the text in the required element that differs from other elements, you can use this text in the >MATCH> selector. You can also specify the number of a specific selector by using the prefix >AT> Manual on selectors
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