I want to switch between tabs in Java application using QTP 11.0. The problem is that tab buttons are not seen by qtp object spy as separate objects, the whole tab pane is seen as JTabbedPane:

enter image description here

Any ideas how to accomplish this?

Now trying to perform click operation on JTabbedPane using x, y coordinates:

JavaWindow("java window name").JavaTab("JTabbedPane name").Click 220, 10,"LEFT"

But don't know how to debug cause I can't see the actual place where the click is performed in application...

1 Answer 1


The solution was trivial, tab is selected by its name with a function Select:

JavaWindow("java window name").JavaTab("JTabbedPane name").Select "Tab Name"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.