LDTP  2.3.1
copytext

Syntax

copytext('<window name>', '<component name>', <startoffset>, <endoffset>)

Description

Copies text within specified offset present in the specified <component> into clipboard

ImplementationDetails

Return values:
1on success and 0 otherwise

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/text.c

Example

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.

Author:
Premkumar J <prem.jothimani@gmail.com>