copytext

Syntax

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

Description

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

Implementation

Return values:
1 on success and 0 otherwise
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/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>


Linux Desktop Testing Project