LDTP  3.5.0
 All Pages
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: 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

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..nosp@m.joth.nosp@m.imani.nosp@m.@gma.nosp@m.il.co.nosp@m.m


Linux Desktop Testing Project