1 | on success, LdtpExecutionError exception on failure |
# 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.