def gettablerowindex(self, window_name, object_name, row_text):
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>index = <NUM_LIT:0><EOL>for cell in object_handle.AXRows:<EOL><INDENT>if re.match(row_text,<EOL>cell.AXChildren[<NUM_LIT:0>].AXValue):<EOL><INDENT>return index<EOL><DEDENT>index += <NUM_LIT:1><EOL><DEDENT>raise LdtpServerException(u"<STR_LIT>" % row_text)<EOL>
Get table row index matching given text

@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 row_text: Row text to select
@type row_text: string

@return: row index matching the text on success.
@rtype: integer