LDTP
2.3.1
|
gettabcount('<window name>', '<tab list name>')
Returns the page tab count of a page tab list
tab | count of type long is returned on success, LdtpExecutionError on failure |
Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/page-tab-list.c
With respect to Preferences dialog of gedit
from ldtp import *
selectmenuitem('*-gedit', 'mnuEdit;mnuPreferences')
gettabcount('dlgPreferences', 'ptl0')