def click(self, window_name, object_name):
object_handle = self._get_object_handle(window_name, object_name)<EOL>if not object_handle.AXEnabled:<EOL><INDENT>raise LdtpServerException(u"<STR_LIT>" % object_name)<EOL><DEDENT>size = self._getobjectsize(object_handle)<EOL>self._grabfocus(object_handle)<EOL>self.wait(<NUM_LIT:0.5>)<EOL>self.generatemouseevent(size[<NUM_LIT:0>] + size[<NUM_LIT:2>] / <NUM_LIT:2>, size[<NUM_LIT:1>] + size[<NUM_LIT:3>] / <NUM_LIT:2>, "<STR_LIT>")<EOL>return <NUM_LIT:1><EOL>
Click item.

@param window_name: Window name to look for, either full name,
LDTP's name convention, or a Unix glob.
@type window_name: string
@param object_name: Object name to look for, either full name,
LDTP's name convention, or a Unix glob.
@type object_name: string

@return: 1 on success.
@rtype: integer