Forum Discussion

SamuraiJack's avatar
15 years ago

Default object commands for Minimize or maximize?

We're using TC mostly for web based testing, are there default commands for recognized apps like IE to min/max a window or bring it to the forefront? 

something along the lines of

Call TestedApps.iexplore.Minimize() ??

1 Reply

  • Hi Jack,

    You need to use calls to the Minimize, Maximize and SetFocus methods of the application's window, but not of the application's process (it does not have such methods).

    As for Internet Explorer, you need to find the child of the "iexplore" process whose WndClass property's value is equal to "IEFrame" and use a call to its Minimize, Maximize and SetFocus methods. For additional information, see the "IEFrame Method" article. Also, here is an example for Internet Explorer 8: