Ask a Question

Default object commands for Minimize or maximize?

SamuraiJack
Contributor

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 1

RE: Default object commands for Minimize or maximize?

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:




  ...

  Sys.Process("iexplore").IEFrame(0).Minimize

  ...


cancel
Showing results for 
Search instead for 
Did you mean: