LDTP  3.5.0
 All Pages
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: 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

Example

With respect to Preferences dialog of gedit

from ldtp import *

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

gettabcount('dlgPreferences', 'ptl0')

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project