LDTP  3.5.0
 All Pages
getwindowsize

Syntax

getwindowsize('<window name>')

Description

Get the window size, of the given window name. If window 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: 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

launchapp('gedit')

getwindowsize('*-gedit')

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


Linux Desktop Testing Project