LDTP
3.5.0
|
settextvalue('<window name>', '<component name>', '<text>')
puts the text into the component given by the component name
In text.py
1 | on 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
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')