selecttabindex ('<window name>', '<tab list name>', <index of the tab>)
Select a particular tab in the list of tabs
- 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
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>
Linux Desktop Testing Project