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

Click On Component / Component Should Exist Is Not Working with Java Button #4

Closed
nadeemsharif opened this issue Sep 21, 2011 · 3 comments
Assignees
Milestone

Comments

@nadeemsharif
Copy link

Hi,
I have a button "Check" on my application on which I have to press "Right Click"
For that i am trying to use keyword "Select From Popup Menu" but it fails with error message that "Check" subcomponent is not found.
I used "Push Button" kewyword and it is clicking on "Check" button correctly.

But when i am using
Component Should Exist Check keyword then it is giving error that component "Check" does not exist.

I also used
Click On Component Check keyword but still it gives error message that sub component Check not found.

"Check"is JavaButton and i think it is a component. and I want to "Right Click" on "Check" button.
Is there a way or keyword to Right Click on Button or any component.

Thanks.

@yanne
Copy link
Contributor

yanne commented Sep 26, 2011

Have you selected a context using Select Window/Select Dialog keywords?

What does using List components in context return?

@nadeemsharif
Copy link
Author

yes i have used Select Window Keyword here are the results.
I have used List Components In Context keyword but it is not displaying comprihensive information about components or objects on that window.

So if i have to Click on a buttong and want to use keyword Click On Component then what is the way to use it.

Bellow is list of components in window.

  • KEYWORD: SwingLibrary.List Components In Context
    Documentation: Prints components (their types and their internal names) from the selected context.
    Start / End / Elapsed: 20110926 10:44:48.324 / 20110926 10:44:48.371 / 00:00:00.047
    10:44:48.371 INFO 0 javax.swing.JFrame 0: frame0
    1 javax.swing.JRootPane 0: null
    2 javax.swing.JPanel 0: null.glassPane
    2 javax.swing.JLayeredPane 0: null.layeredPane
    3 javax.swing.JPanel 1: null.contentPane
    4 FileChooserDemo 2: null
    5 javax.swing.Box$Filler null: null
    5 javax.swing.JPanel 3: null
    6 javax.swing.Box$Filler null: null
    6 javax.swing.Box$Filler null: null
    6 FileChooserDemo$InsetPanel 4: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JRadioButton 0: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JRadioButton 1: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JRadioButton 2: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JPanel 5: null
    8 javax.swing.Box$Filler null: null
    8 javax.swing.Box$Filler null: null
    8 FileChooserDemo$1 0: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.Box$Filler null: null
    6 javax.swing.Box$Filler null: null
    6 FileChooserDemo$InsetPanel 6: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JCheckBox 0: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JCheckBox 1: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JPanel 7: null
    8 javax.swing.Box$Filler null: null
    8 javax.swing.Box$Filler null: null
    8 javax.swing.JCheckBox 2: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.Box$Filler null: null
    6 javax.swing.Box$Filler null: null
    6 FileChooserDemo$InsetPanel 8: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JScrollPane 0: null
    8 javax.swing.JViewport 0: null
    9 javax.swing.JList 0: null
    10 javax.swing.CellRendererPane 0: null
    8 javax.swing.JScrollPane$ScrollBar 0: null
    9 javax.swing.plaf.metal.MetalScrollButton 0: null
    9 javax.swing.plaf.metal.MetalScrollButton 1: null
    8 javax.swing.JScrollPane$ScrollBar 1: null
    9 javax.swing.plaf.metal.MetalScrollButton 2: null
    9 javax.swing.plaf.metal.MetalScrollButton 3: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.Box$Filler null: null
    6 javax.swing.Box$Filler null: null
    6 FileChooserDemo$InsetPanel 9: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JComboBox 0: null
    8 javax.swing.plaf.metal.MetalComboBoxButton 4: null
    8 javax.swing.CellRendererPane 1: null
    9 javax.swing.plaf.basic.BasicComboBoxRenderer$UIResource 0: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JRadioButton 3: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.JRadioButton 4: null
    7 javax.swing.Box$Filler null: null
    7 javax.swing.Box$Filler null: null
    6 javax.swing.Box$Filler null: null
    6 javax.swing.Box$Filler null: null
    5 javax.swing.Box$Filler null: null
    5 javax.swing.JPanel 10: null
    6 javax.swing.Box$Filler null: null
    6 javax.swing.JRadioButton 5: null
    6 javax.swing.Box$Filler null: null
    6 javax.swing.JRadioButton 6: null
    6 javax.swing.Box$Filler null: null
    6 javax.swing.JRadioButton 7: null
    6 javax.swing.Box$Filler null: null
    6 javax.swing.JButton 5: null
    6 javax.swing.Box$Filler null: null
    6 javax.swing.JButton 6: null
    6 javax.swing.Box$Filler null: null
    6 javax.swing.JButton 7: null
    6 javax.swing.Box$Filler null: null
    5 javax.swing.Box$Filler null: null
    3 javax.swing.JMenuBar 0: null
    4 javax.swing.JMenu null: null
    4 javax.swing.JMenu null: null
    4 javax.swing.JMenu null: null

@ghost ghost assigned yanne Apr 24, 2012
@yanne
Copy link
Contributor

yanne commented May 3, 2012

I am going to close this, since there are two issues here. Component should exist works with JButtons.

I created a separate issue #10 for right clicking on Component

@yanne yanne closed this as completed May 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants