LDTP  3.5.0
 All Pages
getobjectproperty

Syntax

getobjectproperty('<window name>', '<object name>', '<object property>')

Description

Get the object property if available, else exception will be thrown

Return values
objectproperty string 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 dialog of gedit application

from ldtp import *

getobjectproperty('dlgFind', 'btnFind', 'label') # Returns '_Find' string in US.English locale

Author
Premkumar J prem..nosp@m.joth.nosp@m.imani.nosp@m.@gma.nosp@m.il.co.nosp@m.m


Linux Desktop Testing Project