LDTP
3.5.0
|
copytext('<window name>', '<component name>', <startoffset>, <endoffset>)
Copies text within specified offset present in the specified <component> into clipboard
1 | on success and 0 otherwise |
Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/text.py
Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/text.py
Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Text.cs
With respect to gedit tool structure
copytext('gedit', 'txt0', 5,10)
This is to copy the text within the offset specified from the 'txt0' field into clipboard.