LDTP  3.5.0
 All Pages
getcombovalue

Syntax

getcombovalue('<window name>', '<cboName>')

Description

Get currently selected combo box value

ImplementationDetails

getcombovalue function will try to get the combo box value and returns.

Return values
combobox value on success, LdtpExecutionError exception on failure

Refer: Linux: 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/Combobox.cs

Example

In gnome-search-tool combo box 'Available options' to get the menu item 'Contains the text'

getcombovalue('SearchForFiles', 'cboAvailableoptions')

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project