cursor | position which is of type long on success, LdtpExecutionError exception on failure |
# Assuming that gedit is opened
settextvalue ('*-gedit', 'txt0', 'Testing setcursorposition function of LDTP')
getcursorposition ('*-gedit', 'txt0')
The above example will get the current cursor position in the text object of gedit windows first tab.