LDTP  3.5.0
 All Pages
cuttext

Syntax

cuttext('<window name>', '<component name>', <startindex>, <endindex>)

Description

Cut the text from startindex till the endindex in the component given by the component name

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

cuttext('gedit', 'txtName', 1, 3)

This is to cut the text from the startindex position till the endindex in the 'txtName' field.

Author
Kamakshi poorv.nosp@m.akri.nosp@m.shna@.nosp@m.yaho.nosp@m.o.com


Linux Desktop Testing Project