LDTP  2.3.1
getobjectsize

Syntax

getobjectsize('<window name>'[, '<object name>'])

Description

Get the object size, of the given window. If object does not exist, then LdtpExecutionError will be thrown.

Return values
x,y,width,heightas a list and as int type will be returned on success, LdtpExecutionError exception on failure

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/ldtp-gui.c

Example

launchapp('gedit')

getobjectsize('*-gedit', 'btnFind')

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project