Ciekawe strony
antioch wielkiksiestwo toskani
jezyk czeski
bitwa
mistrzowie kaijudo
jezyk ukrainski
rak trzustki
tajna-armia
testowa
Overmars
setcursorposition ('<window name>', '<text object name>', <position>)
Sets cursor position in a text field
- Todo:
- Return values:
-
| 1 | on success, LdtpExecutionError exception on failure |
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/text.c
from ldtp import *
# Assuming that gedit is opened
settextvalue ('*-gedit', 'txt0', 'Testing setcursorposition function of LDTP')
setcursorposition ('*-gedit', 'txt0', 9)
The above example will set the given text value in first tab of gedit window and the cursor position will be moved to column number 10 of the first row.
- Author:
- Nagappan <nagappan@gmail.com>
Linux Desktop Testing Project