Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Getting display value of a comboboxItem in selenium.

    SmartClient Version: v11.0p_2016-05-28/Pro Deployment (built 2016-05-28)

    I can't seem to get the display value of a comboboxitem with an optiondatasource in selenium. I tried selenium.getValue, but that returns the underlying value. The selenium.getText return an empty string.

    is there any way to get the display text of the selected value?


    #2
    Are you referring to Selenium WebDriver or a Selenium v1 script?

    Comment


      #3
      Selenium v1

      Comment


        #4
        We've modified the behavior of getText() to fall back tot he native getValue() method if it otherwise would have returned the empty string. Thus, getText() should now be able to retrieve the "display value" of most elements, whereas (our overridden) getValue() will retrieve the Framework-defined value for that object.

        This has been applied to SGWT 6.0p/SC 11.0p and newer, and should be in the nightly builds dated 2016-06-09 and beyond.

        Comment

        Working...
        X