Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
How do you close a specific SWFTab
posted

Good afternoon,

In our applicaiton we select tabs and enter data. Once we finish entering the data, we need to close the tab with QTP to retain the values. Once we save the record, the value are save with it.

 

Here is the select tab.

SwfWindow("Summit FT - Generic Asset Definition").SwfTab("_tabControl").Select "Trade Envelope"

How do we close the tab using test advantage? Is the documentation for the commands by object available for test advantage as a referance.

 

Regards,

 

Brian

  • 7695
    Offline posted

    If the TabControl in question is either the UltraTabControl or UltraTabStripControl then you can use the action CloseTab which should be in the intellisense for the control and in the documentation. So for your sample it should be:

    SwfWindow("Summit FT - Generic Asset Definition").SwfTab("_tabControl").CloseTab "Trade Envelope"