Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

selecttabindex

Syntax

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

Description

Select a particular tab in the list of tabs

Implementation

Return values:
1 if the tab is selected,
Exceptions:
otherwise ldtp.error will be thrown
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/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 A <nagappan@gmail.com>

Generated by  Doxygen 1.6.0   Back to index