Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

doesrowexist

Syntax

doesrowexist ('<window name>', '<table name>', '<string to be matched>', no of matches)

Description

Checks whether the table contains any row with any of its cell containing the given string as its value.Please note that it checks for an exact match.

Implementation

Return values:
1 if there are rows with the given string in any of its cell, else 0.
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/table.c

Example

from ldtp import *

With respect to the message list table in Evolution Mailer, the following call will return 1 if there is atleast one mail in the list with the given string in the subject field or sender field or in any other field for that matter.

doesrowexist ('dlgContactListMembers', 'tblContacts', 'Sample subject')

Author:
Manu <manunature@rediffmail.com>

Generated by  Doxygen 1.6.0   Back to index