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:
List of 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 <nagappan@gmail.com>


Linux Desktop Testing Project