getpanelchildcount ('<window name>', '<component name>')
Gets the number of childs available under the given panel
| Returns | the child count if present, else -1, if unable to find child count |
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/panel.c
With respect to gedit application
from ldtp import *
getpanelchildcount ('*-gedit', 'pnl0')