Trigger macro on click on xpath

is it possible to automatically trigger macro on click on xpath element on browser, so that no need to click to play that macro?

Hi Nikhil,

I am not sure if you are looking for this:

I hope this helps…

Thanks for the prompt reply, but I am not embedding macros in a website.

For example: macro is running in the background but if I happen to click a defined element (like ‘submit’ button) then macro will store the the submitted fields to a CSV.

If next page ‘submit’ element not clicked then no data stored to CSV.

After which I move to a different page but store to CSV will be activated only when I click ‘submit’ button element again.