def selectlastrow(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>cell = object_handle.AXRows[-<NUM_LIT:1>]<EOL>if not cell.AXSelected:<EOL><INDENT>object_handle.activate()<EOL>cell.AXSelected = True<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT>return <NUM_LIT:1><EOL>
Select last row

@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

@return: 1 on success.
@rtype: integer