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,height as 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')

getwindowsize ('*-gedit')

Author:
Nagappan Alagappan <nagappan@gmail.com>


Linux Desktop Testing Project