I understand that the storeAttribute command can be used to extract the url of an anchor. If a page has a link named “Click me”, all I have to do is:
storeAttribute | linkText=Click me@href | result
to store the URL in the result variable. This works perfectly as long as each link has a different linkText.
Now, if a page has 10 different links and all of them are called “Click me”, doing the previous command will only return the first on the list.
Is there a way to loop through all 10 links? I want to store all of them, not only the 1st one. I can get the total number of them using sourceSearch | Click me | howmany but that’s all. Maybe I don’t know how to use sourceExtract?
Thank you in advance