LDTP  3.5.0
 All Pages
gettablerowindex

Syntax

gettablerowindex('<window name>', '<tablename>', '<cellvalue>')

Description

Returns the id of the row containing the given <cellvalue>

ImplementationDetails

Return values
Returnid of the row containing the given cell value, if it is found else return -1

Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/table.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/table.py

Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Tree.cs

Example

In case of Evolution Calendar, to select the category form the list of categories

gettablerowindex('dlgMeeting', 'tblCategoryList', 'Business')

The above call would return the row id of the cell containing Business.

Author
Premkumar J prem..nosp@m.joth.nosp@m.imani.nosp@m.@gma.nosp@m.il.co.nosp@m.m


Linux Desktop Testing Project