LDTP  2.3.1
 All Pages
getchild

Syntax

getchild('<window name>'<[, '<component name>'], [ '<role>']>)

Description

Gets the list of object available in the window, which matches component name or role name or both.

Return values
Listof objects on success, LdtpExecutionError exception on failure

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/client-handler.c

Example

With respect to Find object of gedit application

from ldtp import *

getchild('*-gedit', 'Find')

getchild('*-gedit', role = 'push button')

getchild('*-gedit', 'Find', role = 'push button')

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


Linux Desktop Testing Project