LDTP
3.5.0
|
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: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/core.py
Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/core.py
Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Generic.cs
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')