LDTP  2.3.1
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: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/table.c

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.jothimani@gmail.com>