LDTP  3.5.0
 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: 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

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