LDTP  2.3.1
gettabcount

Syntax

gettabcount('<window name>', '<tab list name>')

Description

Returns the page tab count of a page tab list

Return values:
tabcount of type long is returned on success, LdtpExecutionError on failure

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

Example

With respect to Preferences dialog of gedit

from ldtp import *

selectmenuitem('*-gedit', 'mnuEdit;mnuPreferences')

gettabcount('dlgPreferences', 'ptl0')

Author:
Nagappan Alagappan <nagappan@gmail.com>