Click on any link in the page but one

DBG

New Member
VIP
Joined
Mar 2, 2021
Messages
12
Reaction score
0
Achievement
Hello.
Maybe I can get some help from one of you regarding this problem:

Say I have a web page which contains the following internal links:


I want to run a macro that will click in any of those internal links but #1 or #4 (say they are non profitable ones that must be included in the page anyway: privacy notice, legal things, etc).

I need the solution to be based in filtering by link text (even if it requires nexted "ifs"), since the position of links 1 and 4 may be different in another page.
Can this be done with the set of macro functions we have available?

Thanks in advance!!
 

DBG

New Member
VIP
Joined
Mar 2, 2021
Messages
12
Reaction score
0
Achievement
Initially I was thinking of part of the url, but the other option could also be interesting since It could give me the chance to write the link texts in a way that a given string is present in the text of all the links that I want the macro to click.
 

DBG

New Member
VIP
Joined
Mar 2, 2021
Messages
12
Reaction score
0
Achievement
Ok, thanks!!!!!
I'll give it a try.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu