def selectitem(self, window_name, object_name, item_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>self._grabfocus(object_handle.AXWindow)<EOL>try:<EOL><INDENT>object_handle.Press()<EOL><DEDENT>except AttributeError:<EOL><INDENT>x, y, width, height = self._getobjectsize(object_handle)<EOL>self.generatemouseevent(x + <NUM_LIT:5>, y + <NUM_LIT:5>, "<STR_LIT>")<EOL>self.wait(<NUM_LIT:5>)<EOL>handle = self._get_sub_menu_handle(object_handle, item_name)<EOL>x, y, width, height = self._getobjectsize(handle)<EOL>self.generatemouseevent(x + <NUM_LIT:5>, y + <NUM_LIT:5>, "<STR_LIT>")<EOL>return <NUM_LIT:1><EOL><DEDENT>self.wait(<NUM_LIT:1>)<EOL>menu_list = re.split("<STR_LIT:;>", item_name)<EOL>try:<EOL><INDENT>menu_handle = self._internal_menu_handler(object_handle, menu_list,<EOL>True)<EOL>self.wait(<NUM_LIT:1>)<EOL>if not menu_handle.AXEnabled:<EOL><INDENT>raise LdtpServerException(u"<STR_LIT>" %menu_list[-<NUM_LIT:1>])<EOL><DEDENT>menu_handle.Press()<EOL><DEDENT>except LdtpServerException:<EOL><INDENT>object_handle.activate()<EOL>object_handle.sendKey(AXKeyCodeConstants.ESCAPE)<EOL>raise<EOL><DEDENT>return <NUM_LIT:1><EOL>
Select combo box / layered pane item

@param window_name: Window name to type in, either full name,
LDTP's name convention, or a Unix glob.
@type window_name: string
@param object_name: Object name to type in, either full name,
LDTP's name convention, or a Unix glob. 
@type object_name: string
@param item_name: Item name to select
@type object_name: string

@return: 1 on success.
@rtype: integer