There are many solutions to do this, but which solution helps to optimize the source code is important. Please clarify the purpose, explain more clearly
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
2021-12-27_16-34-15.png 
What I mean is how to remove elements that are not visible to the browser to avoid clicking on them.
Thanks.