LDTP  2.3.1
selecttabindex

Syntax

selecttabindex('<window name>', '<tab list name>', <index of the tab>)

Description

Select a particular tab in the list of tabs

ImplementationDetails

Return values:
1if the tab is selected,
Exceptions:
otherwiseLdtpExecutionError will be thrown

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/page-tab-list.c

Example

from ldtp import *

For selecting Editor tab with respect to gedit preferences

selecttabindex('dlgPreferences', 'ptlPreferences', 1)

Note:
0 based index
Author:
Nagappan Alagappan <nagappan@gmail.com>