LDTP  2.3.1
settextvalue

Syntax

settextvalue('<window name>', '<component name>', '<text>')

Description

puts the text into the component given by the component name

ImplementationDetails

In text.c

Return values:
1on success and 0 otherwise

In combo-box.c

Combo box will be associated with child of type 'Text' when one of its child is 'List'. This action gets object handle of 'Text' object associated with combo box and then sets value given in argument in that text box

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

Example

With respect to gnome search tool text field

settextvalue('SearchforFiles', 'txtNameContainsEntry', 'abcd')

This is to insert the text 'abcd' into the 'txtNameContainsEntry' field.

In combo box:

settextvalue('dlgFind', 'cboSearchfor', 'test')

Author:
Poornima <pnayak@novell.com>