I have to refactor an existing GWT web project, with no existing test cases. Before I start I want to create test cases for common action. I am trying to write a test case with zombie.js. But my problem is more of a general javascript challenge. Take a look at the example below. I need a test case that simulates a click on UI element which contains the text "Click me!". But the click handler is assign to some element before, e.g. c11 or c1. Any idea how this can be implemented?
<div id="c1">
<div id="c11">
<div id="c12"></div>
<div id="c13"></div>
<div id="c14"><nobr>Click me!</nobr></div>
</div>
</div>