rendered paste bodydef selectrow (windowName, tableName, rowText, nthMatch = -1): """Selects the row with the text in the table INPUT: selectevent ('<window name>', '<table name>', '<row text to be selected>') OUTPUT: Returns 1 on success and 0 on error.""" try: _requestId = str (random.randint (0, sys.maxint)) _message = generatexml ('selectrow', _requestId, windowName, tableName, rowText, str(nthMatch)) sendpacket (_message) _responseStatus, _responseData = getresponse (_requestId) if _responseStatus[0] != 0: raise LdtpExecutionError ('selectrow failed: ' + _responseStatus[1]) return 1 except LdtpExecutionError, msg: raise LdtpExecutionError (str (msg))