LDTP  3.5.0
 All Pages
inserttext

Syntax

inserttext('<window name>', '<component name>', <position>, '<text>')

Description

Insert the text in the specified position 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

inserttext('*-gedit', 'txt0', 5, 'sample text')

This is to insert the given text at the specified position in the 'txtName' field.

Author
Premkumar J prem..nosp@m.joth.nosp@m.imani.nosp@m.@gma.nosp@m.il.co.nosp@m.m


Linux Desktop Testing Project