LDTP  3.5.0
 All Pages
settextvalue

Syntax

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

Description

puts the text into the component given by the component name

ImplementationDetails

In text.py

Return values
1on success and 0 otherwise

In combo_box.py

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: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/text.py http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/combo_box.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/combox_box.py

Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Text.cs

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 pnaya.nosp@m.k@no.nosp@m.vell..nosp@m.com


Linux Desktop Testing Project