cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to select Tabs in a Java App

SOLVED
Highlighted
Occasional Contributor

Unable to select Tabs in a Java App

Hello,

 

I am fairly new to test complete and im running into a problem. Im trying to grab the tabs in a tabed table and it wont see it. It sees it as a single object instead of multiple objects. Is there a way to set custom selections or prehaps refine selection? When I go into the object browser it shows teh tabbed pane but under that is only the table itself not the buttons.

 

Thanks,

Mitch

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Unable to select Tabs in a Java App

In my experience, the "Tabs" themselves are not invididual UI objects but controls embedded in the tab.  Notice in your screenshots that it recognizes that the tabs are there with the wTabCount property (there are 4 tabs).

 

To click on a tab, usually there is a ClickTab or ClickItem or SelectItem or some similar method on the control to select the specific tab.  Doing a QUICK research in the TestComplete documentation for the Java TabbedPane control type revealed this

 

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/tab/clicktab-action-t...

 

So... you should be able to call ClickTab(0) to click the first tab or ClickTab("My Caption") to click the tab with the indicated caption.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: Unable to select Tabs in a Java App

In my experience, the "Tabs" themselves are not invididual UI objects but controls embedded in the tab.  Notice in your screenshots that it recognizes that the tabs are there with the wTabCount property (there are 4 tabs).

 

To click on a tab, usually there is a ClickTab or ClickItem or SelectItem or some similar method on the control to select the specific tab.  Doing a QUICK research in the TestComplete documentation for the Java TabbedPane control type revealed this

 

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/tab/clicktab-action-t...

 

So... you should be able to call ClickTab(0) to click the first tab or ClickTab("My Caption") to click the tab with the indicated caption.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

Highlighted
Occasional Contributor

Re: Unable to select Tabs in a Java App

Now I feel foolish.. Thank you I was not looking in the right location.

 

Thanks,

Mitch

Community Hero

Re: Unable to select Tabs in a Java App

Hi Mitch,

 

In addition: in Capture2.png and Capture3.png it can be seen that you are using the Basic view mode for Object Browser. Switch to the Advanced one to be able to get access to more object's properties and methods.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!