LDTP  2.3.1
 All Pages
selecttextitem

Syntax

selecttextitem('<window name>', '<combo box name>', '<item>')

Description

Selects a text item in a combox box and the combo box may contain either list or menu item.

Return values
1on success, LdtpExecutionError exception on failure

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

Example

With respect to gedit, find dialog

from ldtp import *

click('*-gedit', 'btnFind')

assuming that LDTP string is available in the list of searched strings

selecttextitem('dlgFind', 'cboSearchFor', 'LDTP')

Author
Poornima Nayak pnaya.nosp@m.k@no.nosp@m.vell..nosp@m.com


Linux Desktop Testing Project