IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Interface for getText method

  • 1.  Interface for getText method

    Posted Wed January 25, 2012 12:23 PM

    Hi everyone,
    I’m writing unit tests for the UI of our project and I’m trying to find a uniform way to get the text of UI Elements. As far as I see getText() method is defined for each UI Element (for example in nUIButtonElement and then again in nUITextfieldElement etc.) and not in a parent class or interface, so my question is - is there a way to access this text in an uniform way or I need to manually check and cast each element?

    Thanks,
    Nenko


    #webMethods-General
    #mobile
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Interface for getText method

    Posted Wed January 25, 2012 03:21 PM

    Hi Nenko,

    I believe there are only a few route classes that you’ll need to worry about (nUIButtonElement, nUIEntryElement and nUITextfieldElement) - a lot of the other text based classes extend upon these. At the moment, as you say, the text entry method isn’t implemented from a root level interface, but we could look to add this in the future. I must admit, it’s possibly not high priority against the new feature / fix work that we’re focusing on currently.

    Regards,

    Nick.


    #Integration-Server-and-ESB
    #webMethods-General
    #mobile
    #webMethods


  • 3.  RE: Interface for getText method

    Posted Thu January 26, 2012 09:08 AM