If you select "Reference to Selected Element" in UI Browser's AppleScript menu you'll get the format you want, Click Selected Element will give you the click code, and so. These are also available from the popup:
There's probably a bunch of other things that make life easier, but I'm not a user...
