Buttonclicks (non-URLs)

Hello Guys,

does anyone know or have a script, where im able to push on certain Buttons, which doesnt have an URL in it.?

For example the connection button in LinkedIn or in Facebook.

Im looking for a script, where i can just insert the Xpath of the button and where the Script clicks on it. Just like the Macro "Click Google Chrome Link" but for Buttons

What about Found Image [Keyboard Maestro Wiki] ?