This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Whichever framework you are using should have a guessable way of generating the ID. It's usually something like "form:layout-panels:control-id" (if you are unsure, you can just do "View Source" in the browser and work out what convention your framework uses.
Once you know that, it's pretty simple JS to get the element by ID and then invoke the click function.
Even if you can't get the ID, you can either iterate the DOM or get elements by type and iterate those. What exact JS you use depends on what browser you are using.
Joined: Nov 17, 2010
I tried that and found that the format used is "myform:launchLink"