LDTP
3.5.0
|
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: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/page_tab_list.py
Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/page_tab_list.py
Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Tab.cs
With respect to Preferences dialog of gedit
from ldtp import *
selectmenuitem('*-gedit', 'mnuEdit;mnuPreferences')
gettabcount('dlgPreferences', 'ptl0')