Forum Discussion

ray_mosley's avatar
ray_mosley
Frequent Contributor
12 years ago

TC 9.0: How to access TPageControl tab by name?

My application under test makes extensive use of the TPAgeControl object.  While I found the wTabCount & wFocusedTab items that indicate hown many tabs exist in the object and which one has focus, it does not provide me with a way from My TestComplete script to select a tab by name.

How do I select a TPageControl tab by name?



1 Reply

  • Anonymous's avatar
    Anonymous
    Hi Harlan, 



    I found the ClickTab method that should select the tabbed page specified by its caption. This information is listed in the "Win32 TabControl Methods" article. 

    Besides, this functionality might be available via some native method or property of the control. Your developers must know this. You'd better contact them.




    BTW, if you find the needed method, please share it with us.