LDTP  3.0.0
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 kbhar.nosp@m.gavi.nosp@m._83@y.nosp@m.ahoo.nosp@m..co.i.nosp@m.n


Linux Desktop Testing Project