looping a list of hyperlinks

Asked by Winners

Suppose I have a list of 10 hyperlinks:

hyperlink1
hyperlink2
...
hyperlink10

And suppose each link contains different text (no consistent pattern such as "hyperlink" as shown above). User wants to right click each hyperlink and open it in a separate tab (i.e. _blank vs _self). How do we condition a loop statement to accomplish this. Also, how easier would it be if each hyperlink contained a consistent pattern of text.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Winners
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

make up a list of these hyperlinks:

links = ["link1.com", "link2.com", ....]

and then loop thru the list and do what is needed for every entry.

look: faq 1437

Revision history for this message
Winners (felixpremium) said :
#2

Solved. Thanks!