Default object commands for Minimize or maximize?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2010
07:23 AM
02-18-2010
07:23 AM
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() ??
something along the lines of
Call TestedApps.iexplore.Minimize() ??
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2010
07:55 PM
02-18-2010
07:55 PM
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
...
Best regards,
Alexey
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
