getchild ('<window name>'<[, '<component name>'], [ '<role>']>)
Gets the list of object available in the window, which matches component name or role name or both.
| List | of objects on success, LdtpExecutionError exception on failure |
Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/client-handler.c
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')