LDTP  2.3.1
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 <nagappan@gmail.com>