Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
joaquimfragoso opened this issue Jan 30, 2013 · 1 comment
Milestone

Comments

@joaquimfragoso
Copy link

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

@jussimalinen
Copy link
Member

Implemented in 053ac4e

Note that the intendation spaces are included, hope that is not a problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants