Let’s say that there is a workflow action button named “samplewkflbtn” on your screen and you want to track the same for attaching your custom URL or some other purpose. You may follow the below given steps to achieve the same.
1. Find the “Table” element by getElementById method.
2. Loop through all the records above using length property.
3. In each run of the loop find the anchor tag “A” element and loop through the records of the same.
After this you can change the link of button by forcing href property of the same to redirect to your custom url