This is the HTML code:
<div class="test" onclick="$(this).vote('<$>votehash</$>', null, event)"></div>
I am currently using the WebClient in the Gargoylesoftware package and Apache Commons stuff..
Just completely stumped as there is no tab index or standard HTML button.
If you want to simulate a click, what you need to do is call
getElementById("blah");which returns aHtmlElement, then callclick();on that. If the element is unique, it should have an id attribute, as you’d normally code in HTML. Otherwise, just traverse the DOM as you would normally to find the element.