LDTP  2.3.1
getrowcount

Syntax

getrowcount('<window name>', '<table name>')

Description

Returns the number of rows present in the table mentioned

Return values:
numberof rows present in the table on success, else -1

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/table.c
Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/tree-table.c

Example

from ldtp import *

With respect to Evolution, to check no of mails

getrowcount('frmReadOnlyMail', 'tblmails')

Author:
Bhargavi <kbhargavi_83@yahoo.co.in>