LDTP  3.5.0
 All Pages
closewindow

Syntax

closewindow(['<window name>'])

Description

Close window based on the given name, default None. If None, will close all window one by one

Return values
Returns1 on success, LdtpExecutionError exception will be thrown 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/Menu.cs

Example

closewindow('Mozilla Firefox')

Dependency

wnck, pygtk python library

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com
Arvind Patil apati.nosp@m.l@vm.nosp@m.ware..nosp@m.com


Linux Desktop Testing Project