Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7061527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:29:06+00:00 2026-05-28T04:29:06+00:00

I am trying to automate UI interactions for a C++ MFC application. I tried

  • 0

I am trying to automate UI interactions for a C++ MFC application. I tried to find elements’ automation ID using UISpy and UIAVerify tools. I am on win2k3.

There is a tab control, the automation ID of which is visible to UISpy but not to UIAVerify.

The issue is – it is not visible even to the C# code that I write using Project White framework or ui automation framework of .net 3.0.

I want to get handle to this control the way UISpy gets it. Is there any way I can find out how UISpy does it?

Thanks!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:29:07+00:00Added an answer on May 28, 2026 at 4:29 am

    UISpy is likely using Microsoft UI Automation under the covers. You can see how this works from this example*. There are all kinds of conditions on AutomationElement which you can use to locate them.

    I’ve only worked with WPF tabs, but found it really, really hard to locate them by Automation Id. Instead I’ve been using the AutomationName property, with the title on the tab as the value. Not sure if White supports this, but I’m pretty sure you can get the original AutomationElement out and use it as per the example.

    You’ll also probably be looking for something supporting the SelectionItemPattern (there’s a SelectionItemIsSupportedProperty), and you’ll need to use the pattern to select the tab and make it active before you can see anything in it.

    Please comment if you need any more info. It might help to know what the structure of your container with tabs in is.

    *Declaration of interest since I wrote this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to automate menu picks using Microsoft UI Automation. The application that I'm
I am trying automate a login process to my web application using Selenium-Python Client
I'm currently trying to automate a test case using the White UI-Automation framework .
I'm trying to automate a gdb session using the --command flag. I'm trying to
I am trying to automate functional testing of a server using a realistic frequency
I am trying to automate VC++ build via an addIn written using VB.NEt so
I'm trying to automate the build of a project in Delphi 2009. I'm using
I am trying to automate the testing of RESTful services, and researching tools that
I'm trying to automate deployment of a play application as a .war file. In
I'm trying to automate the download of some data from a webform. I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.