LDTP  2.3.1
 All Pages
getpanelchildcount

Syntax

getpanelchildcount('<window name>', '<component name>')

Description

Gets the number of childs available under the given panel

Return values
Returnsthe child count if present, else -1, if unable to find child count

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/panel.c

Example

With respect to gedit application

from ldtp import *

getpanelchildcount('*-gedit', 'pnl0')

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


Linux Desktop Testing Project