Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
Get displayed value from SWFComboBox
posted

Good morning,

We are working with the SWFCombobox using:

TestAdvantage for Windows Forms (HP) 2007 Vol. 3 CLR 2.0

We have been able to get the items and match the value to select a specific item. Once the item is selected, the system will display the short version of the text in the combobox to the user.  We need to verify this is displayed.

What property should we be checking to get this displayed value.

Example value to select is "Actual" value displayed after selection is "Act"

Regrads,

Brian

  • 7695
    Offline posted

    SwfComboBox can refer to several editors, but regardless of the editor one of the following should give you what you are looking for:

    SET combo = SwfWindow("Form1").SwfComboBox("someCombo1")

    msgbox combo.GetNAProperty("Text")
    msgbox combo.GetNAProperty("Value")
    msgbox combo.GetNAProperty("DisplayText")

    The DisplayText will not work on all controls that use SwfComboBox but it can be useful for those that do.