How to get control names or control ids of Objects in WinTool bar
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get control names or control ids of Objects in WinTool bar
Hi,
I am trying to automate a desktop application which is there in multiple languages.I need to click on Add button in a Tool Bar.I don't want to use Name as it will be different in different languages. When I am trying to spy the Add Button object ,test complete is able to identify till Tool bar.Inside the tool bar there are Win Buttons.How can I get Properties like Control name or Control ids of Add Button.Please find the attachment for screenshot and test complete Object spy details.
Thanks in Advance.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What methods are available on the Toolbar? Is there something like a ClickItem or something like that? That would be my first suggestion because, in my experience, the ClickItem can be run on either the name OR the ID.
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your replay.There is a method for ClickItem but how can I get an Id of winbutton inside the Tool bar when Test complete is identifying up to tool bar.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are very few situations where I would recommend recording a test but this is one of them. It might be useful to do a quick record of the task you want to achieve and then, from that recording, pull out the specific information to use in your test.
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I am trying to record it is recording like this.
ClickItemXY("Add", 42, 18)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Which Technology is used for developing your window application (WPF, infragistics, DevExpress.....)
If your custom controls are not specifically supported by TestComplete, you have several options to improve object identification for test recording and playback. For example, you can map your custom control classes to the corresponding standard classes or use supplementary object identification methods such as Microsoft Active Accessibility (MSAA), UI Automation or Text Recognition. You can also automate operations using native methods and properties of controls under test
Refer this article and select your appropriate technology. This may help you.
- https://support.smartbear.com/viewarticle/81472/
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Ravik for your replay.My application has windows forms.
