How to click ALL the buttons(anchor text) one by one in the whole page

Hi Team,
scenario:
in a long web-page with numerous buttons(anchor text), which are defined by partial matches, e.g.:
they’re named:
click here #1
click here #2
click here #3
basically they can be found by visualAssert “click here #”;

so the task here is:
i need to click EACH of them[means the buttons(anchor text)], how to make it?
what i’ve tried:
i’ve tried visualsearch, but found it only search the visual part of the page, which means it won’t scroll down till the end(the whole page);
thanks.

Does the normal CLICK command work?

good question!

don’t have a direct answer, can or can’t, in detail:

if using click, the buttons(anchor text) are as beneath separately:

xpath=//[@id=“test”]/div/div[2]/div[4]/div[2]/ul[1]/li/div[2]/div[4]/div/i
xpath=//
[@id=“test”]/div/div[2]/div[4]/div[2]/ul[2]/li/div[2]/div[4]/div/i
xpath=//[@id=“test”]/div/div[2]/div[4]/div[2]/ul[3]/li/div[2]/div[4]/div/i
xpath=//
[@id=“test”]/div/div[2]/div[4]/div[2]/ul[4]/li/div[2]/div[4]/div/i
xpath=//[@id=“test”]/div/div[2]/div[4]/div[2]/ul[5]/li/div[2]/div[4]/div/i
xpath=//
[@id=“test”]/div/div[2]/div[4]/div[2]/ul[6]/li/div[2]/div[4]/div/i
xpath=//*[@id=“test”]/div/div[2]/div[4]/div[2]/ul[7]/li/div[2]/div[4]/div/i

so, as we can see, the difference b/t them are the # after ul,

xpath=//*[@id=“test”]/div/div[2]/div[4]/div[2]/ul[

]/li/div[2]/div[4]/div/i

supposing using loop, how to make it? can we make it via RegExp? i don’t know how to write it here. do you know?

thanks.

{
“Command”: “times”,
“Target”: “7”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“test”]/div/div[2]/div[4]/div[2]/ul[${!times}]/li/div[2]/div[4]/div/i”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
}