capturetofile ('<window name>', '<combo box name>'[, '<file name>'])
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.
- Todo:
- Return values:
-
| 1 | on success, LdtpExecutionError on failure |
Refer:
http://webcvs.freedesktop.org/ldtp/ldtp/src/combo-box.c
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>