Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

capturetofile

Syntax

capturetofile ('<window name>', '<combo box name>'[, '<file name>'])

Description

Capture the list of contents of a combox box to a file. If file name argument is None, then by default the list contents are written to comboboxitem.lst file of current working directory of LDTP engine.

Implementation

Todo:
Return values:
1 on success, LdtpExecutionError on failure
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/combo-box.c

Example

With respect to Find dialog of gedit application

from ldtp import *

# Without specifiying the filename

capturetofile ('dlgFind', 'cboSearchfor')

# With specifiying the filename

capturetofile ('dlgFind', 'cboSearchfor', '/tmp/comboboxlistitem.txt') # Not relative path won't work !!!

Author:
Premkumar J <prem.jothimani@gmail.com>

Generated by  Doxygen 1.6.0   Back to index