A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/robotframework/SwingLibrary/issues/31 below:

Enhance KW ListComponentsInContext to return values as printed in console · Issue #31 · MarketSquare/SwingLibrary · GitHub

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4