How to 'click' a link via code

I want to open a url in code rather than have a user click a link - need a general pointer to how to do this

Check out the docs on events. Perhaps, raise_event docs would help.

Something like:

self.link_1.raise_event('click')

I believe you are trying to actually visit a url, so I’ve edited my response to fit that.

2 Likes

I wanted to add a direct link to the solution, as the above does not work