LDTP  3.5.0
 All Pages
getobjectinfo

Syntax

getobjectinfo('<window name>', '<object name>')

Description

Gets the list of object information lik class, parent, label, label_by, child_index

Return values
listof object properies(example, class, parent, label, label_by, child_index) 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 gedit Find dialog

from ldtp import *

getobjectinfo('dlgFind', 'btnFind')

Author


Linux Desktop Testing Project