Skip to content

Enhance KW ListComponentsInContext to return values as printed in console #31

Description

@joaquimfragoso

I would like that ListComponentsInContext returns the values (possibly in list format) so programatically I could check what's inside: one List element per line is enough; so indentation is not required.

Currently it doesn't return everything (ID and value is missing) as shown below:

Snipplet
from org.robotframework.swing.keyword.development import DevelopmentKeywords
dev_kw = DevelopmentKeywords()
lct_list_components = dev_kw.listComponentsInContext()
return lct_list_components.split()

Example from console output:
0 com.nokiasiemens.common.framework.mvc.CMInternalFrame 0: 001-001 I01R40G Configuration
1 javax.swing.JRootPane 0: null
2 javax.swing.JPanel 0: null.glassPane
2 javax.swing.JLayeredPane 0: null.layeredPane
3 com.nokiasiemens.widgets.ResizeCorner 0: null
3 javax.swing.JPanel 1: null.contentPane
4 javax.swing.JScrollPane 0: null
5 javax.swing.JViewport 0: null
6 com.nokiasiemens.hit73.windows.card.configuration.Hit73TransponderCardConfigurationWindow 2: null

Example from return value:
0: [com.nokiasiemens.common.framework.mvc.CMInternalFrame,
1: javax.swing.JRootPane,
2: javax.swing.JPanel,
3: javax.swing.JLayeredPane,
4: com.nokiasiemens.widgets.ResizeCorner,
5: javax.swing.JPanel,
6: javax.swing.JScrollPane,
7: javax.swing.JViewport,
8: com.nokiasiemens.hit73.windows.card.configuration.Hit73TransponderCardConfigurationWindow

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions