Skip to content

Infragistics Community Forum / Test Automation For Micro Focus Uft Windows Forms / SwfTab – How to switch among the tabs available?

SwfTab – How to switch among the tabs available?

New Discussion
Naresh Karipe
Naresh Karipe asked on Apr 15, 2014 7:54 PM

Hi,

I have window under which I have 4 tabs. Let’s Say A,B,C,D. Now by default I will be in the Tab “A”. Now the question is how to switch the tab from “A” to “B” or “C”? I have tried the below but unable to switch the tabs.

SwfWindow(“Window1”).SwfWindow(“Window2”).SwfTab(“UltraTabControl1”).Select “B”

Regards,

Karipe

Sign In to post a reply

Replies

  • 0
    Hristo Goshev
    Hristo Goshev answered on Dec 27, 2012 8:52 AM

    Hello,

     

    Please verify that the key of Tab “B” is “B”, it is possible “B” to be just the caption of the tab. Second check if SwfWindow("Window1").SwfWindow("Window2").SwfTab("UltraTabControl1") returns you UltraTabControl that has a tab page with key “B”.

     

    I hope that this will helps you.

  • 0
    Hristo Goshev
    Hristo Goshev answered on Jan 8, 2013 2:19 PM

    Hello, ­­­­­

     

    I am just checking about the progress of this issue. Let me know If you need my further assistance on this  issue?

     

    Thank you for using Infragistics Components.

    • 0
      Antima pacahuri
      Antima pacahuri answered on Apr 15, 2014 7:54 PM

      I am working on windows forms. .Net 4 framework and QTP 10, I have installed the frameowrk before QTP10.

      QTP is identifying the toolbar as a generic object (SwfObject:Toolbar) and not really a toolbar (SwfToolbar)

      Object spy did not get the properties I was looking for, so I used ".Net Windows forms spy". I was able to see the properties of toolbar.

      set val1 = SwfWindow("EES").SwfObject("SwfObject").Object.ImageButtons

      msgbox val1 .count

      able to get count

      Can anyone please let me know how to get to click items(16).

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Naresh Karipe
Favorites
0
Replies
3
Created On
Apr 15, 2014
Last Post
11 years, 10 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Apr 15, 2014 7:54 PM

Last activity on

Feb 19, 2026 8:06 AM